From fcdb441ff83d059f822b5ec7e259d9ce837df2fb Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 1 Jun 2011 02:05:18 +0000 Subject: [PATCH] Fix for r89248: don't run the regex if findIE6Extension returns false. Only affects performance, the logic is the same. --- includes/WebRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index f40d54a50f..69c4a31c50 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -884,7 +884,7 @@ class WebRequest { } $extension = self::findIE6Extension( $_SERVER['QUERY_STRING'] ); - if ( $extension === '' ) { + if ( strval( $extension ) === '' ) { return false; } -- 2.20.1