From: Alexander Ebert Date: Mon, 24 Nov 2014 17:19:38 +0000 (+0100) Subject: Prevent matching the very own master key X-Git-Tag: 2.1.0_Beta_1~171 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d414ac9ac30d713150d23dc22d6c1731d397b45d;p=GitHub%2FWoltLab%2FWCF.git Prevent matching the very own master key --- 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);