Author: jleroux
Date: Tue Apr 7 17:36:29 2009
New Revision: 762863
URL:
http://svn.apache.org/viewvc?rev=762863&view=revLog:
A patch from Divesh Dutta "Secure URLs in Freemarker templates files"
https://issues.apache.org/jira/browse/OFBIZ-2260Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl?rev=762863&r1=762862&r2=762863&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl Tue Apr 7 17:36:29 2009
@@ -18,7 +18,10 @@
-->
<div class="screenlet-body">
<a href="<@ofbizUrl>UpdateLabel?fileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerAddNew}</a>
- <a href="<@ofbizUrl>SaveLabelsToXmlFile?labelFileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerUpdateFile}</a>
+ <form name= "SaveLabelsToXmlFile" method= "post" action= "<@ofbizUrl>SaveLabelsToXmlFile</@ofbizUrl>">
+ <input type= "hidden" name= "labelFileName" value= "${parameters.labelFileName?if_exists}">
+ <a href="javascript:document.SaveLabelsToXmlFile.submit()" class="buttontext">${uiLabelMap.WebtoolsLabelManagerUpdateFile}</a>
+ </form>
<table class="basic-table hover-bar" cellspacing="3">
<tr class="header-row">
<td>${uiLabelMap.WebtoolsLabelManagerRow}</td>