From: Sam Reed Date: Fri, 13 Jan 2012 21:42:31 +0000 (+0000) Subject: () are valid in URLs, not sure why we're using them as a finishing point in ApiFormatBase X-Git-Tag: 1.31.0-rc.0~25297 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=3012b8df3808cf1489a1ecbc4a3e037eca49a8f9;p=lhc%2Fweb%2Fwiklou.git () are valid in URLs, not sure why we're using them as a finishing point in ApiFormatBase Fixes fixme on r95572 as urls are now complete with () in them --- diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 674763299b..543c90ce08 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -264,7 +264,7 @@ See complete documentation, or // This regex hacks around bug 13218 (" included in the URL) $text = preg_replace( "#(($protos).*?)(")?([ \\'\"<>\n]|<|>|")#", '\\1\\3\\4', $text ); // identify requests to api.php - $text = preg_replace( "#api\\.php\\?[^ \\()<\n\t]+#", '\\0', $text ); + $text = preg_replace( "#api\\.php\\?[^ <\n\t]+#", '\\0', $text ); if ( $this->mHelp ) { // make strings inside * bold $text = preg_replace( "#\\*[^<>\n]+\\*#", '\\0', $text );