diff --git a/lib/Browser.php b/lib/Browser.php index 9583cc4..de4c2b2 100644 --- a/lib/Browser.php +++ b/lib/Browser.php @@ -4,7 +4,7 @@ /** * File: Browser.php * Author: Chris Schuld (http://chrisschuld.com/) - * Last Modified: August 20th, 2010 + * Last Modified: July 4th, 2014 * @version 1.9 * @package PegasusPHP * @@ -597,7 +597,11 @@ protected function checkBrowserInternetExplorer() $this->setBrowser(self::BROWSER_IE); $result = explode('rv:', $this->_agent); $this->setVersion(preg_replace('/[^0-9.]+/', '', $result[1])); - $this->_agent = str_replace(array("Mozilla", "Gecko"), "MSIE", $this->_agent); + if(stripos($this->_agent, 'IEMobile') !== false) { + $this->setBrowser(self::BROWSER_POCKET_IE); + $this->setMobile(true); + } + return true; } // Test for Pocket IE else if (stripos($this->_agent, 'mspie') !== false || stripos($this->_agent, 'pocket') !== false) { $aresult = explode(' ', stristr($this->_agent, 'mspie'));