• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
user_agent Chrome as Opera ?

#1
Bug 
Hi,

I got this with :

Code:
...
'user_agent : '.$this->input->user_agent(),
'platform : '.$this->agent->platform(),
'browser : '.$this->agent->browser(),
'version : '.$this->agent->version(),
...

give 

Code:
user_agent : Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
platform : Android
browser : Opera
version : 6.170623.013

Opera ?? I think it is a bug ...
Regards,
Reply

#2
Related topic : https://www.sencha.com/forum/showthread....d-as-Opera
Reply

#3
Well, I simply comment the first line in config\user_agents.php

Code:
'OPR' => 'Opera',

Code:
//'OPR' => 'Opera',

Because of this :
ONEPLUS A3003 Build/OPR6.170623.013

Regards,
Reply

#4
(12-06-2017, 08:38 AM)sthienard Wrote: Hi,

I got this with :

Code:
...
'user_agent : '.$this->input->user_agent(),
'platform : '.$this->agent->platform(),
'browser : '.$this->agent->browser(),
'version : '.$this->agent->version(),
...

give 

Code:
user_agent : Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3003 Build/OPR6.170623.013) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
platform : Android
browser : Opera
version : 6.170623.013

Opera ?? I think it is a bug ...
Regards,
I am using device-detector from piwik.

https://github.com/piwik/device-detector
https://www.codeigniter.com/user_guide/g...oader.html
Reply

#5
try
https://github.com/donatj/PhpUserAgent
https://github.com/WhichBrowser/Parser-PHP
powerful
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.