mssola / user_agent

This project has been moved, check the README.md file!

Home Page:https://github.com/mssola/useragent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panic: runtime error: index out of range

vmihailenco opened this issue · comments

More user agents that panic:

Mozilla/5.0 (Linux; U) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
Mozilla/4.0 (compatible; MSIE6.0; Windows NT 5.0; .NET CLR 1.1.4322)

Hi @vmihailenco ! Thanks for reporting both crashes. I've fixed the second one in my last commit (9e3df73). I can fix the first one too but could you tell me first where did you get this user agent string (mobile version of Chrome ?). Thanks

Hi,

Web app I am working on receives requests with such user agent. So I don't know whether this is mobile version of Chrome or not.

Ok, fixed, thanks again ;)

I was asking because I was unsure whether this user agent was from a mobile since no information was given in this regard by this user agent. In absence of any "Mobile" or "Android" or any hint that it's a mobile, for this case I'll assume that this is not coming from a cellphone.