Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* IE 5 on mac was being detected as IE 6

git-svn-id: http://svn.php.net/repository/pear/packages/Net_UserAgent/trunk@211569 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit b75bfa99318ad52f934a1c8e90233f14cf13efc9 1 parent 561195e
Jason Rust authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Detect.php
View
2  Detect.php
@@ -246,7 +246,7 @@ function detect($in_userAgent = null, $in_detect = null)
$browser['ie3'] = $browser['ie'] && $majorVersion < 4;
$browser['ie4'] = $browser['ie'] && $majorVersion == 4 && (strpos($agt, 'msie 4') !== false);
$browser['ie4up'] = $browser['ie'] && !$browser['ie3'];
- $browser['ie5'] = $browser['ie4up'] && (strpos($agt, 'msie 5.0') !== false);
+ $browser['ie5'] = $browser['ie4up'] && (strpos($agt, 'msie 5') !== false);
$browser['ie5_5'] = $browser['ie4up'] && (strpos($agt, 'msie 5.5') !== false);
$browser['ie5up'] = $browser['ie4up'] && !$browser['ie3'] && !$browser['ie4'];
$browser['ie5_5up'] = $browser['ie5up'] && !$browser['ie5'];
Please sign in to comment.
Something went wrong with that request. Please try again.