From: Sam Reed Date: Mon, 28 Nov 2011 19:02:59 +0000 (+0000) Subject: URL-ify index.php urls X-Git-Tag: 1.31.0-rc.0~26249 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=302e55c18e04a04807b2c0e4c56b4638dbf1cf47;p=lhc%2Fweb%2Fwiklou.git URL-ify index.php urls --- 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 );