WhichBrowser / Parser-PHP

Browser sniffing gone too far — A useragent parser library for PHP

Home Page:http://whichbrowser.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Device detection error

vbntv opened this issue · comments

commented

Hello.
In user agents like these, "device" is defined as empty string:
Mozilla/5.0 (Linux; arm_64; Android 6.0.1; NX549J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 YaBrowser/20.9.3.85.00 SA/3 Mobile Safari/537.36"
Mozilla/5.0 (Linux; arm; Android 6.0.1; NX549J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 YaBrowser/20.9.3.85.00 SA/3 Mobile Safari/537.36"

But if you send in the parser the same UA without "arm" or "arm_64" - device is detected correctly.

Fixed in the upcoming 2.1.1 release.