[dw-free] Warning in the logs when viewing an entry with irreparable markup.
[commit: http://hg.dwscoalition.org/dw-free/rev/931f7ab908c9]
http://bugs.dwscoalition.org/show_bug.cgi?id=3234
Less warnings.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3234
Less warnings.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/CleanHTML.pm
-------------------------------------------------------------------------------- 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; } --------------------------------------------------------------------------------