Skip to content

Commit

Permalink
fix: secure kargoBidAdapter against wrong Array extensions (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
sielay authored and idettman committed Nov 8, 2018
1 parent a186c83 commit 771db1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const spec = {
let nameEquals = `${name}=`;
let cookies = document.cookie.split(';');

for (let key in cookies) {
let cookie = cookies[key];
for (let i = 0; i < cookies.length; i++) {
let cookie = cookies[i];
while (cookie.charAt(0) === ' ') {
cookie = cookie.substring(1, cookie.length);
}
Expand Down

0 comments on commit 771db1c

Please sign in to comment.