?
avatar Quy
Quy
4 Jul 2017

Steps to reproduce the issue

Here is the offending useragent in the access log:

"Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) CriOS/59.0.3071.102 Mobile/14F89 Safari/602.1"

From /libraries/joomla/environment/browser.php (lines 279-283)

			elseif (preg_match('/Chrome[\/ ]([0-9.]+)|CrMo[\/ ]([0-9.]+)|CriOS[\/ ]([0-9.]+)/i', $this->agent, $version))
			{
				$this->setBrowser('chrome');
				list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
			}

Expected result

No PHP Notice

Actual result

PHP message: PHP Notice: Undefined offset: 1 in /libraries/joomla/environment/browser.php on line 282\n

System information (as much as possible)

v3.7.3

avatar Quy Quy - open - 4 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jul 2017
Category Libraries
avatar Quy Quy - change - 5 Jul 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-07-05 21:51:14
Closed_By Quy
avatar Quy Quy - close - 5 Jul 2017
avatar Quy
Quy - comment - 5 Jul 2017

See PR #16989

Add a Comment

Login with GitHub to post a comment