From: Tim Starling Date: Wed, 1 Jun 2011 02:05:18 +0000 (+0000) Subject: Fix for r89248: don't run the regex if findIE6Extension returns false. Only affects... X-Git-Tag: 1.31.0-rc.0~29812 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=fcdb441ff83d059f822b5ec7e259d9ce837df2fb;p=lhc%2Fweb%2Fwiklou.git Fix for r89248: don't run the regex if findIE6Extension returns false. Only affects performance, the logic is the same. --- 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; }