Author: jleroux
Date: Tue Feb 10 18:11:01 2009
New Revision: 743038
URL:
http://svn.apache.org/viewvc?rev=743038&view=revLog:
Fix an issue in sendmail when special chars where used but not encoded
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?rev=743038&r1=743037&r2=743038&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Tue Feb 10 18:11:01 2009
@@ -116,7 +116,7 @@
results.put("partyId", partyId);
results.put("subject", subject);
if (UtilValidate.isNotEmpty(body)) {
- results.put("body", body);
+ results.put("body", StringUtil.htmlEncoder.encode(body));
}
if (UtilValidate.isNotEmpty(bodyParts)) {
results.put("bodyParts", bodyParts);