From 302e55c18e04a04807b2c0e4c56b4638dbf1cf47 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 28 Nov 2011 19:02:59 +0000 Subject: [PATCH] URL-ify index.php urls --- includes/api/ApiFormatBase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index a0138ac366..b742b80319 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -265,6 +265,8 @@ See complete documentation, or $text = preg_replace( "#(($protos).*?)(")?([ \\'\"<>\n]|<|>|")#", '\\1\\3\\4', $text ); // identify requests to api.php $text = preg_replace( "#api\\.php\\?[^ \\()<\n\t]+#", '\\0', $text ); + // identify requests to index.php + $text = preg_replace( "#index\\.php\\?[^ \\()<\n\t]+#", '\\0', $text ); if ( $this->mHelp ) { // make strings inside * bold $text = preg_replace( "#\\*[^<>\n]+\\*#", '\\0', $text ); -- 2.20.1