Y'know, just kill *ALL* whitespace when doing length checks.

This commit is contained in:
Chris 2012-08-01 13:40:49 +01:00
parent 2d820491e6
commit e47d3abfac

View File

@ -291,7 +291,7 @@ sub validate_htmlarea {
my $scrubber = HTML::Scrubber -> new();
my $nohtml = $scrubber -> scrub($text);
$nohtml =~ s/[\t\r\n]//g; # Kill some kinds of whitespace that may be left by scrubber that will confuse length checks.
$nohtml =~ s/\s//g; # Kill some kinds of whitespace that may be left by scrubber that will confuse length checks.
# If the text area is empty, deal with the whole default/required malarky
if(!defined($nohtml) || !$nohtml) {