瀏覽代碼

Merge pull request #7946 from garonsky/HPCC-14447_fix_pw_encoding

HPCC-14447 ConfigMgr incorrectly encodes passwords

Reviewed-By: Russ Whitehead <william.whitehead@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 年之前
父節點
當前提交
ff8bb31fff
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      esp/files/scripts/configmgr/navtree.js

+ 3 - 2
esp/files/scripts/configmgr/navtree.js

@@ -2565,8 +2565,9 @@ function promptVerifyPwd(category, params, attrName, oldValue, newValue, recordI
       xmlArgs += "\" attrName=\"" + attrName;
       xmlArgs += "\" viewType=\"password";
       xmlArgs += "\" rowIndex=\"" + recordIndex;
-      xmlArgs += "\" oldValue=\"" + escape(oldValue);
-      xmlArgs += "\" newValue=\"" + escape(pwd) + "\"/></XmlArgs>";
+      xmlArgs += "\" oldValue=\"" + oldValue;
+      xmlArgs += "\" newValue=\"" + pwd + "\"/></XmlArgs>";
+      xmlArgs = encodeURIComponent(xmlArgs);
 
       YAHOO.util.Connect.asyncRequest('POST', '/WsDeploy/SaveSetting', {
         success: function(o) {