Fix edit-new-page link for results not found.
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Jul 2003 00:29:18 +0000 (00:29 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Jul 2003 00:29:18 +0000 (00:29 +0000)
includes/SearchEngine.php

index e339106..b635ad9 100644 (file)
@@ -432,9 +432,9 @@ class SearchEngine {
                        $wgArticle->view();
                        return;
                }
-               $wgOut->addHTML( str_replace( "$1",
-                 wfLocalUrl( ucfirst($this->mUsertext) . "&action=edit"),
-                 wfMsg("nogomatch")) . "\n<p>" );
+               $wgOut->addHTML( wfMsg("nogomatch", 
+                 htmlspecialchars( wfLocalUrl( ucfirst($this->mUsertext), "action=edit") ) )
+                 . "\n<p>" );
                $this->showResults();
        }
 }