svn commit: r598679 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r598679 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

jleroux@apache.org
Author: jleroux
Date: Tue Nov 27 07:51:01 2007
New Revision: 598679

URL: http://svn.apache.org/viewvc?rev=598679&view=rev
Log:
A patch from Michael Brohl "StringUtil.htmlSpecialChars: ampersand replaced with "&amps;" instead of "&"" (https://issues.apache.org/jira/browse/OFBIZ-1431) - OFBIZ-1431

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java?rev=598679&r1=598678&r2=598679&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java Tue Nov 27 07:51:01 2007
@@ -447,7 +447,7 @@
      * </ol>
      */
     public static String htmlSpecialChars(String html, boolean doubleQuotes, boolean singleQuotes, boolean insertBR) {
-        html = StringUtil.replaceString(html, "&", "&amps;");
+        html = StringUtil.replaceString(html, "&", "&amp;");
         html = StringUtil.replaceString(html, "<", "&lt;");
         html = StringUtil.replaceString(html, ">", "&gt;");
         if (doubleQuotes) {