X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=opensearch_desc.php;h=b06b7feecf51617d72823837750d20ff46225271;hb=5bae4e447222ee14c04aa8619b38aba0fb03f666;hp=cd3638f89c9ef1343ca8e878f54b5a06e681012c;hpb=5b3ca072937e7ed7f9cf3b77ddac1992031d7050;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index cd3638f89c..b06b7feecf 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -16,10 +16,10 @@ if ( !preg_match( '/^https?:/', $wgFavicon ) ) { $favicon = htmlspecialchars( $wgFavicon ); } -$title = Title::makeTitle( NS_SPECIAL, 'Search' ); +$title = SpecialPage::getTitleFor( '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();