1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-09 15:46:34 +02:00

github issue 7 fix

This commit is contained in:
Steve Clay
2011-10-13 11:57:05 -04:00
parent 4e0b1fee8d
commit fbc20ab19d

View File

@@ -318,6 +318,9 @@ class HTTP_Encoder {
*/ */
public static function isBuggyIe() public static function isBuggyIe()
{ {
if (empty($_SERVER['HTTP_USER_AGENT'])) {
return false;
}
$ua = $_SERVER['HTTP_USER_AGENT']; $ua = $_SERVER['HTTP_USER_AGENT'];
// quick escape for non-IEs // quick escape for non-IEs
if (0 !== strpos($ua, 'Mozilla/4.0 (compatible; MSIE ') if (0 !== strpos($ua, 'Mozilla/4.0 (compatible; MSIE ')