Author: jacopoc
Date: Tue May 22 00:39:04 2007
New Revision: 540456
URL:
http://svn.apache.org/viewvc?view=rev&rev=540456Log:
Applied patch to html encode the content of textareas. From OFBIZ-1002
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?view=diff&rev=540456&r1=540455&r2=540456==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Tue May 22 00:39:04 2007
@@ -314,7 +314,7 @@
String value = modelFormField.getEntry(context, textareaField.getDefaultValue(context));
if (UtilValidate.isNotEmpty(value)) {
- buffer.append(value);
+ buffer.append(UtilFormatOut.encodeXmlValue(value));
}
buffer.append("</textarea>");