Commit 895bdbd9 authored by Dave Cridland's avatar Dave Cridland

Merge pull request #84 from ArchyInf/EncPropertyFix

fixed encrypted properties containing xml escaped data not saved correct...
parents fe052913 7e2db426
......@@ -481,7 +481,7 @@ public class XMLProperties {
String propValue = StringEscapeUtils.escapeXml(value);
// check to see if the property is marked as encrypted
if (JiveGlobals.isPropertyEncrypted(name)) {
propValue = JiveGlobals.getPropertyEncryptor().encrypt(propValue);
propValue = JiveGlobals.getPropertyEncryptor().encrypt(value);
childElement.addAttribute(ENCRYPTED_ATTRIBUTE, "true");
}
childElement.setText(propValue);
......@@ -642,7 +642,7 @@ public class XMLProperties {
String propValue = StringEscapeUtils.escapeXml(value);
// check to see if the property is marked as encrypted
if (JiveGlobals.isPropertyEncrypted(name)) {
propValue = JiveGlobals.getPropertyEncryptor().encrypt(propValue);
propValue = JiveGlobals.getPropertyEncryptor().encrypt(value);
element.addAttribute(ENCRYPTED_ATTRIBUTE, "true");
}
element.setText(propValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment