From: Chia-liang K. <cl...@cl...> - 2002-07-16 11:14:57
|
Hi, there are several filters too strict for non-english sites. I could manually remove them from the content_filter table. but the hardcoded checks for the existence of non-whitespace below should be patched. Index: themes/slashcode/htdocs/comments.pl =================================================================== RCS file: /cvsroot/slashcode/slash/themes/slashcode/htdocs/comments.pl,v retrieving revision 1.70 diff -u -r1.70 comments.pl --- themes/slashcode/htdocs/comments.pl 3 Jul 2002 07:26:55 -0000 1.70 +++ themes/slashcode/htdocs/comments.pl 14 Jul 2002 19:40:26 -0000 @@ -731,7 +731,7 @@ for ($$comm, $$subj) { my $d = decode_entities($_); $d =~ s/&#?[a-zA-Z0-9]+;//g; # remove entities we don't know - if ($d !~ /\w/) { # require SOME non-whitespace + if ($d !~ /\S/) { # require SOME non-whitespace $$error_message = getError('no body'); return; } Cheers, CLK |