From: Brion Vibber Date: Mon, 24 Nov 2003 09:51:33 +0000 (+0000) Subject: Fix search term in google form, doubled google X-Git-Tag: 1.1.0~101 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=7ad91ca6341ab26535ba4b5382b41bc508e644bb;p=lhc%2Fweb%2Fwiklou.git Fix search term in google form, doubled google --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 52416cf7ee..7253e6edcf 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -181,7 +181,7 @@ class SearchEngine { $num = wfNumRows($res1); if ( $wgDisableTextSearch ) { - $wgOut->addHTML( wfMsg( "searchdisabled", $search, $wgInputEncoding ) ); + $wgOut->addHTML( wfMsg( "searchdisabled", htmlspecialchars( $search ), $wgInputEncoding ) ); } else { $sk = $wgUser->getSkin(); $text = wfMsg( "searchresulttext", $sk->makeKnownLink( @@ -251,11 +251,7 @@ class SearchEngine { wfFreeResult( $res1 ); $wgOut->addHTML( "\n" ); } - } - - if ( $wgDisableTextSearch ) { - $wgOut->addHTML( wfMsg( "searchdisabled", $search, $wgInputEncoding ) ); - } else { + if ( 0 == wfNumRows( $res2 ) ) { $wgOut->addHTML( "

" . wfMsg( "notextmatches" ) . "

\n" ); diff --git a/languages/Language.php b/languages/Language.php index 458f07fea4..e0cee206f6 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -723,7 +723,7 @@ $2 List redirects   Search for $3 $9", border=\"0\" ALT=\"Google\"> - +
WWW {$wgServer}