Commit 6866d086 authored by flefle's avatar flefle Committed by Sven Berg Ryen
Browse files

Issue #3241333 by svenryen, flefle, crmn, Jeslin.Shaji, onedotover: Uncaught...

Issue #3241333 by svenryen, flefle, crmn, Jeslin.Shaji, onedotover: Uncaught SyntaxError: Unexpected token % in JSON at position 0
parent 29a03fe9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -620,7 +620,7 @@
    if (storedCategories !== null && typeof storedCategories !== 'undefined') {
      // JS cookie introduced unescaped cookie values.
      if (storedCategories.indexOf('%') !== -1) {
        storedCategories = decodeURI(storedCategories).replace(/%2C/g, ',');
        storedCategories = decodeURI(storedCategories).replaceAll(/%2C/g, ',');
      }
      _euccSelectedCategories = JSON.parse(storedCategories);
    }