From: ndparker <> Date: Thu, 26 Apr 2001 13:10:14 +0000 (+0000) Subject: fixed some bugs X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/6fc8c0f3c87e9aaf59aa414a0641db2ac7601d7e fixed some bugs --- diff --git a/selfforum-cgi/shared/CheckRFC.pm b/selfforum-cgi/shared/CheckRFC.pm index 1441038..cb9a616 100644 --- a/selfforum-cgi/shared/CheckRFC.pm +++ b/selfforum-cgi/shared/CheckRFC.pm @@ -99,6 +99,8 @@ sub is_email ($;$) { # remove nested comments 1 while ($string =~ s/\([^()]*\)//g); + #$string =~ s/^\s+//; + #$string =~ s/\s+$//; return ($string =~ /^$email[0]$/) unless $strict; diff --git a/selfforum-cgi/user/config/fo_posting.xml b/selfforum-cgi/user/config/fo_posting.xml index d478b98..5dcf516 100644 --- a/selfforum-cgi/user/config/fo_posting.xml +++ b/selfforum-cgi/user/config/fo_posting.xml @@ -144,6 +144,7 @@ name 60 2 + name repeat diff --git a/selfforum-cgi/user/fo_posting.pl b/selfforum-cgi/user/fo_posting.pl index a2d756e..180233c 100644 --- a/selfforum-cgi/user/fo_posting.pl +++ b/selfforum-cgi/user/fo_posting.pl @@ -817,6 +817,9 @@ sub check_cgi { # (my $val_ww = $val) =~ s/\s+//g; + $val_ww =~ y/a-zA-Z//cd + if (exists ($formdata -> {$name {$_}} -> {type}) and $formdata -> {$name {$_}} -> {type} eq 'name'); + if (length $val_ww < $formdata -> {$name {$_}} -> {minlength}) { $self -> {error} = { spec => 'too_short',