Less warnings.

        Patch by fu. 

diffs (12 lines):

diff -r d35df8caa75a -r 931f7ab908c9 cgi-bin/LJ/CleanHTML.pm
--- a/cgi-bin/LJ/CleanHTML.pm   Tue Nov 16 17:29:36 2010 +0800
+++ b/cgi-bin/LJ/CleanHTML.pm   Tue Nov 16 17:45:09 2010 +0800
@@ -634,7 +634,7 @@ sub clean
 
                     # ignore attributes that do not fit this strict scheme
                     unless ($attr =~ /^[\w_:-]+$/) {
-                        $total_fail->($cut, "$tag " . (%$hash > 1 ? "[...] " : 
"") . "$attr");
+                        $total_fail->($cut, "$tag " . (scalar keys %$hash > 1 
? "[...] " : "") . "$attr");
                         last TOKEN;
                     }
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to