fixed suggest URL
authorYuri Astrakhan <yurik@users.mediawiki.org>
Mon, 16 Oct 2006 02:41:41 +0000 (02:41 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Mon, 16 Oct 2006 02:41:41 +0000 (02:41 +0000)
opensearch_desc.php

index cd3638f..90bfe7d 100644 (file)
@@ -19,7 +19,7 @@ if ( !preg_match( '/^https?:/', $wgFavicon ) ) {
 $title = Title::makeTitle( NS_SPECIAL, 'Search' );
 $template = $title->escapeFullURL( 'search={searchTerms}' );
 
-$suggest = $wgScriptPath . '/api.php?action=opensearch&amp;search={searchTerms}';
+$suggest = htmlspecialchars($wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}');
 
 
 $response = $wgRequest->response();