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

index baa3724..6cf581d 100644 (file)
@@ -794,8 +794,8 @@ class OutputPage {
 
                if ( count( $this->mKeywords ) > 0 ) {
                        $strip = array(
-                               "/<.*?" . ">/" => '',
-                               "/[_]/" => ' '
+                               "/<.*?>/" => '',
+                               "/_/" => ' '
                        );
                        $ret .= "<meta name=\"keywords\" content=\"" .
                          htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),implode( ",", $this->mKeywords ))) . "\" />\n";