* Improved the syntax of two regular expressions

This commit is contained in:
Ævar Arnfjörð Bjarmason 2005-05-15 18:39:18 +00:00
parent 148b225feb
commit 60c6893f78

View 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";