Skip to content

Commit

Permalink
chore: remove security risk by modifying regex
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <sanpj2292@github.com>
  • Loading branch information
Sai Sankeerth committed Feb 1, 2024
1 parent add8c14 commit ef01139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deviceModeInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ let _rudderTracking = (function () {
// utility function to get cookie value
function cookie_parse() {
let obj = {};
let pairs = document.cookie.split(/ *; */);
let pairs = document.cookie.split(';');
let pair;
if ('' == pairs[0]) return obj;
for (let i = 0; i < pairs.length; ++i) {
Expand Down

0 comments on commit ef01139

Please sign in to comment.