fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-16 03:31 pm

[dw-free] make fileedit/support-currentproblems recognize user tags

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

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

Run the support known issues through the HTML cleaner so that user tags can
be processed.

Patch by [personal profile] fu.

Files modified:
  • htdocs/support/index.bml
--------------------------------------------------------------------------------
diff -r 127048be3771 -r f601d6758159 htdocs/support/index.bml
--- a/htdocs/support/index.bml	Mon May 16 23:24:25 2011 +0800
+++ b/htdocs/support/index.bml	Mon May 16 23:31:49 2011 +0800
@@ -26,7 +26,14 @@
     # known issues box
     $ret .= "<div class='blue box'>";
     $ret .= "<?h1 $ML{'.knownissues.head'} h1?>";
-    $ret .= LJ::load_include(BML::get_language() eq 'ru' ? "support-currentproblems-russian" : "support-currentproblems");
+
+    my $currentproblems = LJ::load_include( "support-currentproblems" );
+    LJ::CleanHTML::clean( \$currentproblems, {
+                'wordlength' => 40,
+                'mode' => 'deny',
+    });
+    $ret .= $currentproblems;
+
     $ret .= "</div>";
 
     # ask a question box
--------------------------------------------------------------------------------