Author: lektran
Date: Sun Aug 30 08:14:41 2009
New Revision: 809263
URL:
http://svn.apache.org/viewvc?rev=809263&view=revLog:
Fix potential issue pointed out by Jacopo, double quotes with a field value must be replaced by double double quotes
e.g. "42" Television" needs to be "42"" Television"
Modified:
ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl
Modified: ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl?rev=809263&r1=809262&r2=809263&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl Sun Aug 30 08:14:41 2009
@@ -17,7 +17,7 @@
under the License.
-->
-<#macro renderField text><#if text?exists>"${text}"</#if></#macro>
+<#macro renderField text><#if text?exists>"${text?replace("\"", "\"\"")}"</#if></#macro>
<#macro renderDisplayField idName description class alert inPlaceEditorId="" inPlaceEditorUrl="" inPlaceEditorParams="">
<@renderField description />,<#rt/>