From 297d678270021b2848f5a052b8f67fc4af256380 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 26 Feb 2026 19:15:23 +0100 Subject: [PATCH] Cookies/Fixup * fix storing Item Summary state * amends e421bdba79741b0e0df866bf67b8613f75084c27 --- static/js/basic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/basic.js b/static/js/basic.js index 7e738b11..c0af5d79 100644 --- a/static/js/basic.js +++ b/static/js/basic.js @@ -473,7 +473,7 @@ $WH.sp = function(z) { // Set cookie $WH.sc = function(z, y, x, w, v) { var a = new Date(); - var b = z + "=" + encodeURI(x) + "; "; + var b = z + "=" + encodeURIComponent(x) + "; "; a.setDate(a.getDate() + y); b += "expires=" + a.toUTCString() + "; "; @@ -506,7 +506,7 @@ $WH.dc = function(z) { // Get all cookies (return value is cached) $WH.gc = function(z) { if ($WH.gc.I == null) { // Initialize cookie table - var words = decodeURI(document.cookie).split("; "); + var words = decodeURIComponent(document.cookie).split("; "); $WH.gc.C = {}; for (var i = 0, len = words.length; i < len; ++i) {