From 36240b826c033d980b3ba0081c8269a2dee158a0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 6 Jul 2003 00:29:18 +0000 Subject: [PATCH] Fix edit-new-page link for results not found. --- includes/SearchEngine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } } -- 2.20.1