From d414ac9ac30d713150d23dc22d6c1731d397b45d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 24 Nov 2014 18:19:38 +0100 Subject: [PATCH] Prevent matching the very own master key --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 1af00db479..be50ecfc01 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -434,7 +434,7 @@ RedactorPlugins.wutil = function() { if ($lastChecked === null || $lastChecked < $oneWeekAgo) { var $regExp = new RegExp('^' + $prefix + '_'); for (var $key in localStorage) { - if ($key.match($regExp)) { + if ($key.match($regExp) && $key !== $master) { var $value = localStorage.getItem($key); try { $value = JSON.parse($value); -- 2.20.1