pieroxy / java-user-agent-detection

Some code to deduce an OS/Platform/Browser out of a user-agent string
53 stars 12 forks source link

Single double quote #20

Closed cdclaxton closed 7 years ago

cdclaxton commented 7 years ago

If the user-agent is an (invalid) single double quote, the code at line 16 in

https://github.com/pieroxy/java-user-agent-detection/blob/master/src/main/java/net/pieroxy/ua/detection/UserAgentContext.java

will cause a String out-of-bounds (-1) exception.

pieroxy commented 7 years ago

Thanks. I will fix this in the next release.

pieroxy commented 7 years ago

The code is in. Next release will happen shortly.