X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FIEUrlExtension.php;h=0d969fb270734f0e39a3d9c25835dd2ef2ff15b1;hb=f8fa7944e84d7abc5cbd8f071ab9d658f6c7c581;hp=4a6e3fb168e7a2f044f090d4cddb61c2e278845b;hpb=24dc5218b18bfa065a101057523f39a9c046d046;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/IEUrlExtension.php b/includes/libs/IEUrlExtension.php index 4a6e3fb168..0d969fb270 100644 --- a/includes/libs/IEUrlExtension.php +++ b/includes/libs/IEUrlExtension.php @@ -63,8 +63,8 @@ class IEUrlExtension { // Check QUERY_STRING or REQUEST_URI if ( isset( $vars['SERVER_SOFTWARE'] ) && isset( $vars['REQUEST_URI'] ) - && self::haveUndecodedRequestUri( $vars['SERVER_SOFTWARE'] ) ) - { + && self::haveUndecodedRequestUri( $vars['SERVER_SOFTWARE'] ) + ) { $urlPart = $vars['REQUEST_URI']; } elseif ( isset( $vars['QUERY_STRING'] ) ) { $urlPart = $vars['QUERY_STRING']; @@ -79,8 +79,8 @@ class IEUrlExtension { // Some servers have PATH_INFO but not REQUEST_URI, so we check both // to be on the safe side. if ( isset( $vars['PATH_INFO'] ) - && self::isUrlExtensionBad( $vars['PATH_INFO'], $extWhitelist ) ) - { + && self::isUrlExtensionBad( $vars['PATH_INFO'], $extWhitelist ) + ) { return true; } @@ -133,8 +133,8 @@ class IEUrlExtension { /** * Returns a variant of $url which will pass isUrlExtensionBad() but has the * same GET parameters, or false if it can't figure one out. - * @param $url - * @param $extWhitelist array + * @param string $url + * @param array $extWhitelist * @return bool|string */ public static function fixUrlForIE6( $url, $extWhitelist = [] ) { @@ -186,7 +186,7 @@ class IEUrlExtension { * - if we find a possible extension followed by a dot or another illegal * character, we ignore it and continue searching * - * @param string $url URL + * @param string $url * @return mixed Detected extension (string), or false if none found */ public static function findIE6Extension( $url ) { @@ -223,8 +223,8 @@ class IEUrlExtension { // If the extension is NOT exe, dll or cgi, return it $extension = substr( $url, $pos, $nextPos - $pos ); if ( strcasecmp( $extension, 'exe' ) && strcasecmp( $extension, 'dll' ) && - strcasecmp( $extension, 'cgi' ) ) - { + strcasecmp( $extension, 'cgi' ) + ) { return $extension; } // Else continue looking @@ -251,7 +251,7 @@ class IEUrlExtension { * 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 + * @param string $serverSoftware * @return bool */ public static function haveUndecodedRequestUri( $serverSoftware ) {