Fix #1549 : recognize IE11

This commit is contained in:
Romain Neutron
2013-10-25 15:12:46 +02:00
parent 29258cafec
commit 3e9f628003

View File

@@ -737,6 +737,16 @@ class Browser
}
return true;
} else if(stripos($this->_agent, 'trident') !== false) {
// >= IE 11
$this->setBrowser(self::BROWSER_IE);
// version
$result = explode("rv:", $this->_agent);
$this->setVersion(preg_replace("/[^0-9.]+/", "", $result[1]));
// remove Gecko out of the user-agent, otherwise the mozilla check will success
$this->_agent = str_replace(array("Mozilla", "Gecko"), "MSIE", $this->_agent);
}
return false;