jenssegers / agent

👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
https://jenssegers.com
MIT License
4.55k stars 476 forks source link

Wrong browser on Safari user_agent #43

Open tixastronauta opened 8 years ago

tixastronauta commented 8 years ago

Example:

Mozilla/5.0 (iPhone; CPU iPhone OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H321 [FBAN/FBIOS;FBAV/45.0.0.45.96;FBBV/18289579;FBDV/iPhone5,4;FBMD/iPhone;FBSN/iPhone OS;FBSV/8.4.1;FBSS/2; FBCR/VIVO;FBID/phone;FBLC/pt_BR;FBOP/5]

is returning Mozilla on ->browser() method

jenssegers commented 8 years ago

That's a weird user agent, is that the stock Safari browser?

tixastronauta commented 8 years ago

@jenssegers It's my own UA on a regular Safari on iPhone 6.

driade commented 8 years ago

FBAN/FBAV Identifies Facebook in App Browser.