* Improved the syntax of two regular expressions
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 15 May 2005 18:31:23 +0000 (18:31 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 15 May 2005 18:31:23 +0000 (18:31 +0000)
includes/OutputPage.php

index 8990bdf..baa3724 100644 (file)
@@ -724,8 +724,8 @@ class OutputPage {
                $a = array_slice ( $a , 0 , 10 ) ; # 10 keywords max
                $a = implode ( ',' , $a ) ;
                $strip = array(
-                       "/<.*?" . ">/" => '',
-                       "/[_]/" => ' '
+                       "/<.*?>/" => '',
+                       "/_/" => ' '
                );
                $a = htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),$a ));