mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Fix vulnerable regex in getOS() (as reported by Nick Starke)
This commit is contained in:
parent
7bd9ffea24
commit
25e143ee7c
@ -858,7 +858,7 @@
|
|||||||
], [NAME, VERSION],[
|
], [NAME, VERSION],[
|
||||||
|
|
||||||
/cfnetwork\/.+darwin/i,
|
/cfnetwork\/.+darwin/i,
|
||||||
/ip[honead]+(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i // iOS
|
/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i // iOS
|
||||||
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
||||||
|
|
||||||
/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,
|
/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user