We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf2a86 commit c88b699Copy full SHA for c88b699
1 file changed
view/base/templates/script/cookies.phtml
@@ -30,7 +30,9 @@ $cookieConfig = $block->getCookieConfig();
30
const cookies = {};
31
document.cookie.split(';').forEach(cookie => {
32
const parts = cookie.split('=');
33
- const name = parts[0].trim();
+ const name = parts[0]?.trim();
34
+ if (!name || parts[1] === undefined) return;
35
+
36
let value = parts[1].trim();
37
38
value = decodeURIComponent(value);
0 commit comments