Author: jacopoc
Date: Fri Nov 24 11:42:44 2006
New Revision: 478959
URL:
http://svn.apache.org/viewvc?view=rev&rev=478959Log:
The special characters for xml (not allowed in xsl-fo template) from the data formatted by the form widget are now escaped.
Modified:
incubator/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/fo/FoFormRenderer.java
Modified: incubator/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/fo/FoFormRenderer.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/fo/FoFormRenderer.java?view=diff&rev=478959&r1=478958&r2=478959==============================================================================
--- incubator/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/fo/FoFormRenderer.java (original)
+++ incubator/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/fo/FoFormRenderer.java Fri Nov 24 11:42:44 2006
@@ -23,6 +23,7 @@
import org.ofbiz.base.util.UtilProperties;
import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilFormatOut;
import org.ofbiz.widget.form.FormStringRenderer;
import org.ofbiz.widget.form.ModelForm;
import org.ofbiz.widget.form.ModelFormField;
@@ -86,7 +87,7 @@
buffer.append(getFoStyle(widgetStyle));
}
buffer.append(">");
- buffer.append(text);
+ buffer.append(UtilFormatOut.encodeXmlValue(text));
buffer.append("</fo:block>");
}