Check all MSIE requests since we also want to protect IE 3-5 etc.
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 12 Apr 2011 01:26:17 +0000 (01:26 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 12 Apr 2011 01:26:17 +0000 (01:26 +0000)
includes/WebRequest.php

index 67a9bc2..d5ec821 100644 (file)
@@ -788,10 +788,10 @@ class WebRequest {
                        && preg_match( '/\.[a-z]{1,4}$/i', $_SERVER['QUERY_STRING'] ) )
                {
                        // Bug 28235
-                       // Block only Internet Explorer 6, and requests with missing UA 
+                       // Block only Internet Explorer, and requests with missing UA 
                        // headers that could be IE users behind a privacy proxy.
                        if ( !isset( $_SERVER['HTTP_USER_AGENT'] ) 
-                               || preg_match( '/; *MSIE 6/', $_SERVER['HTTP_USER_AGENT'] ) )
+                               || preg_match( '/; *MSIE/', $_SERVER['HTTP_USER_AGENT'] ) )
                        {
                                return true;
                        }