Reject Opera when it is pretending to be IE

This commit is contained in:
moodler
2004-02-10 14:20:44 +00:00
parent eea2335afe
commit 0e2585ac0f
+3
View File
@@ -1969,6 +1969,9 @@ function check_browser_version($brand="MSIE", $version=5.5) {
case "MSIE": /// Internet Explorer
if (strpos($agent, 'Opera')) { // Reject Opera
return false;
}
$string = explode(";", $agent);
if (!isset($string[1])) {
return false;