Even kill off  s too.

This commit is contained in:
Chris 2012-08-01 13:46:17 +01:00
parent e47d3abfac
commit 8347fe5e48

View File

@ -291,7 +291,7 @@ sub validate_htmlarea {
my $scrubber = HTML::Scrubber -> new();
my $nohtml = $scrubber -> scrub($text);
$nohtml =~ s/\s//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) {