svn commit: r762863 - /ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl

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

svn commit: r762863 - /ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl

jleroux@apache.org
Author: jleroux
Date: Tue Apr  7 17:36:29 2009
New Revision: 762863

URL: http://svn.apache.org/viewvc?rev=762863&view=rev
Log:
A patch from Divesh Dutta "Secure URLs in Freemarker templates files" https://issues.apache.org/jira/browse/OFBIZ-2260

Modified:
    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>