Added --show-output option to parserTests.php, to allow capture of complete output...
[lhc/web/wiklou.git] / 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&search={searchTerms}';
+$suggest = htmlspecialchars($wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}');
 
 
 $response = $wgRequest->response();