From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/libs/IEUrlExtension.php | 58 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 27 deletions(-) (limited to 'includes/libs/IEUrlExtension.php') diff --git a/includes/libs/IEUrlExtension.php b/includes/libs/IEUrlExtension.php index 100454d4..e00e6663 100644 --- a/includes/libs/IEUrlExtension.php +++ b/includes/libs/IEUrlExtension.php @@ -1,31 +1,31 @@ \"/:|?.# - * - if we find a possible extension followed by the end of the string or + * - if we find a possible extension followed by the end of the string or * a #, that's our extension * - if we find a possible extension followed by a ?, that's our extension - * - UNLESS it's exe, dll or cgi, in which case we ignore it and continue + * - UNLESS it's exe, dll or cgi, in which case we ignore it and continue * searching for another possible extension - * - if we find a possible extension followed by a dot or another illegal + * - if we find a possible extension followed by a dot or another illegal * character, we ignore it and continue searching - * + * * @param $url string URL * @return mixed Detected extension (string), or false if none found */ @@ -182,7 +186,7 @@ class IEUrlExtension { // End of string, we're done return false; } - + // We found a dot. Skip past it $pos++; $remainingLength = $urlLength - $pos; @@ -220,12 +224,12 @@ class IEUrlExtension { * with %2E not decoded to ".". On such a server, it is possible to detect * whether the script filename has been obscured. * - * The function returns false if the server is not known to have this + * The function returns false if the server is not known to have this * behaviour. Microsoft IIS in particular is known to decode escaped script * filenames. * * SERVER_SOFTWARE typically contains either a plain string such as "Zeus", - * or a specification in the style of a User-Agent header, such as + * or a specification in the style of a User-Agent header, such as * "Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.8a PHP/4.4.2" * * @param $serverSoftware @@ -234,8 +238,8 @@ class IEUrlExtension { */ public static function haveUndecodedRequestUri( $serverSoftware ) { static $whitelist = array( - 'Apache', - 'Zeus', + 'Apache', + 'Zeus', 'LiteSpeed' ); if ( preg_match( '/^(.*?)($|\/| )/', $serverSoftware, $m ) ) { return in_array( $m[1], $whitelist ); -- cgit v1.2.3-54-g00ecf