You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/02/10 19:11:01 UTC
svn commit: r743038 -
/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
Author: jleroux
Date: Tue Feb 10 18:11:01 2009
New Revision: 743038
URL: http://svn.apache.org/viewvc?rev=743038&view=rev
Log:
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);