From 8347fe5e48f25a93e1f066e2461348ac83dd1835 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 1 Aug 2012 13:46:17 +0100 Subject: [PATCH] Even kill off  s too. --- Block.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Block.pm b/Block.pm index dc7962b..5edc887 100644 --- a/Block.pm +++ b/Block.pm @@ -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) {