From: Brion Vibber Date: Sun, 6 Jul 2003 00:29:18 +0000 (+0000) Subject: Fix edit-new-page link for results not found. X-Git-Tag: 1.1.0~449 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=36240b826c033d980b3ba0081c8269a2dee158a0;p=lhc%2Fweb%2Fwiklou.git Fix edit-new-page link for results not found. --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index e339106015..b635ad937c 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -432,9 +432,9 @@ class SearchEngine { $wgArticle->view(); return; } - $wgOut->addHTML( str_replace( "$1", - wfLocalUrl( ucfirst($this->mUsertext) . "&action=edit"), - wfMsg("nogomatch")) . "\n

" ); + $wgOut->addHTML( wfMsg("nogomatch", + htmlspecialchars( wfLocalUrl( ucfirst($this->mUsertext), "action=edit") ) ) + . "\n

" ); $this->showResults(); } }