fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-17 03:37 pm

[dw-free] Close cut tag in moderation area wrong

[commit: http://hg.dwscoalition.org/dw-free/rev/012e39147e25]

http://bugs.dwscoalition.org/show_bug.cgi?id=2552

Use new-style cut tag (</cut> rather than </lj-cut>)

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/CleanHTML.pm
--------------------------------------------------------------------------------
diff -r 7b98eca5d3d3 -r 012e39147e25 cgi-bin/LJ/CleanHTML.pm
--- a/cgi-bin/LJ/CleanHTML.pm	Wed Nov 17 23:20:47 2010 +0800
+++ b/cgi-bin/LJ/CleanHTML.pm	Wed Nov 17 23:37:13 2010 +0800
@@ -949,7 +949,7 @@ sub clean
             }
             elsif ($tag eq "lj-cut") {
                 if ($opts->{'cutpreview'}) {
-                    $newdata .= "<b>&lt;/lj-cut&gt;</b>";
+                    $newdata .= "<b>&lt;/cut&gt;</b>";
                 }
             } else {
                 if ($mode eq "allow") {
--------------------------------------------------------------------------------