Skip to content

Commit fdc32ee

Browse files
author
Paul Boocock
committed
Protect against invalid domain_sessionid values being used by the tracker (close #978)
1 parent bc40a3a commit fdc32ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/tracker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ export function Tracker(functionName, namespace, version, mutSnowplowState, argm
783783
];
784784
}
785785

786-
if (!tmpContainer[6]) {
786+
if (!tmpContainer[6] || tmpContainer[6] === 'undefined') {
787787
// session id
788788
tmpContainer[6] = uuid();
789789
}

0 commit comments

Comments
 (0)