diff --git a/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser.patch b/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser.patch index 750d9a1613..177d71b5e5 100644 --- a/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser.patch +++ b/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser.patch @@ -387,7 +387,7 @@ { var s = ""; s += ""; -@@ -351,7 +427,27 @@ +@@ -351,7 +427,33 @@ s += ""; s += "
"; $("tdEdit").innerHTML = s; @@ -400,14 +400,20 @@ + s += ""; + $("tdValueEdit").innerHTML = s; + - } ++ } + ++ function decodeURIComponentSafe(s) { ++ if (!s) { ++ return s; ++ } ++ return decodeURIComponent(s.replace(/%(?![0-9][0-9a-fA-F]+)/g, '%25')); + } + + loadChar8859Edit = function(sValue) + { + var s = ""; + s += ""; -+ s += ""; ++ s += ""; + s += "
"; + $("tdValueEdit").innerHTML = s; + $("tdEdit").innerHTML = ""; @@ -415,7 +421,7 @@ <% if (system.GetVar("createNew") == 1) { -@@ -361,27 +457,43 @@ +@@ -361,27 +463,43 @@ if ( (sv.Channel() != ID_ERROR) && (sv.Channel() != 0)) { object oChn = dom.GetObject(sv.Channel()); if (oChn) { diff --git a/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser/occu/WebUI/www/rega/pages/tabs/admin/msg/newSysVar.htm b/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser/occu/WebUI/www/rega/pages/tabs/admin/msg/newSysVar.htm index 34684b182f..fe8057e6fc 100755 --- a/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser/occu/WebUI/www/rega/pages/tabs/admin/msg/newSysVar.htm +++ b/buildroot-external/patches/occu/0097-WebUI-SetSysvarValueByUser/occu/WebUI/www/rega/pages/tabs/admin/msg/newSysVar.htm @@ -438,12 +438,18 @@ } + function decodeURIComponentSafe(s) { + if (!s) { + return s; + } + return decodeURIComponent(s.replace(/%(?![0-9][0-9a-fA-F]+)/g, '%25')); + } loadChar8859Edit = function(sValue) { var s = ""; s += ""; - s += ""; + s += ""; s += "
"; $("tdValueEdit").innerHTML = s; $("tdEdit").innerHTML = "";