r17042 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17041‎ | r17042 | r17043 >
Date:02:41, 16 October 2006
Author:yurik
Status:old
Tags:
Comment:
fixed suggest URL
Modified paths:
  • /trunk/phase3/opensearch_desc.php (modified) (history)

Diff [purge]

Index: trunk/phase3/opensearch_desc.php
@@ -19,7 +19,7 @@
2020 $title = Title::makeTitle( NS_SPECIAL, 'Search' );
2121 $template = $title->escapeFullURL( 'search={searchTerms}' );
2222
23 -$suggest = $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}';
 23+$suggest = htmlspecialchars($wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}');
2424
2525
2626 $response = $wgRequest->response();