mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Fixed unsafe use of for..in to sequentially iterate an Array = incorrect parsed values in some JavaScript VMs.
This commit is contained in:
parent
80d6d137ba
commit
494175854f
@ -78,7 +78,7 @@
|
||||
for (j = k = 0; j < regex.length; j++) {
|
||||
matches = regex[j].exec(this.getUA());
|
||||
if (!!matches) {
|
||||
for (p in props) {
|
||||
for (p = 0; p < props.length; p++) {
|
||||
match = matches[++k];
|
||||
q = props[p];
|
||||
// check if given property is actually array
|
||||
|
2
src/ua-parser.min.js
vendored
2
src/ua-parser.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user