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:30:30 UTC

svn commit: r743044 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java

Author: jleroux
Date: Tue Feb 10 18:30:29 2009
New Revision: 743044

URL: http://svn.apache.org/viewvc?rev=743044&view=rev
Log:
Revert r743038, Actually r743038 does not fix this error (I mixed up with sendMailDated in log)

So I tried using allow-html="safe" and after allow-html="any" in sendMail service definition but none is working (of course the default allow-html="none" is also not working)

I will trace to see where it should be 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=743044&r1=743043&r2=743044&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:30:29 2009
@@ -116,7 +116,7 @@
         results.put("partyId", partyId);
         results.put("subject", subject);
         if (UtilValidate.isNotEmpty(body)) {
-            results.put("body", StringUtil.htmlEncoder.encode(body));
+            results.put("body", body);
         }
         if (UtilValidate.isNotEmpty(bodyParts)) {
             results.put("bodyParts", bodyParts);