Author: pranayp
Date: Mon Jun 13 09:43:45 2016
New Revision: 1748161
URL:
http://svn.apache.org/viewvc?rev=1748161&view=revLog:
Manually applied fix from trunk revision 1748156.
[OFBIZ-7291] Applied patch from the ticket to fix security error on Remove Shopping List Item link in eCommerce. Thanks Mohammed Rehan Khan for the contribution.
Modified:
ofbiz/branches/release15.12/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
Modified: ofbiz/branches/release15.12/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl?rev=1748161&r1=1748160&r2=1748161&view=diff==============================================================================
--- ofbiz/branches/release15.12/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl (original)
+++ ofbiz/branches/release15.12/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl Mon Jun 13 09:43:45 2016
@@ -490,7 +490,13 @@ under the License.
</td>
<td>
<a href="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="button">${uiLabelMap.CommonUpdate}</a>
- <a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>" class="button">${uiLabelMap.CommonRemove}</a>
+ <a href="javascript:document.removeFromShoppingList.submit();" class="button">${uiLabelMap.CommonRemove}</a>
+ <form name="removeFromShoppingList" method="post" action="<@ofbizUrl>removeFromShoppingList</@ofbizUrl>">
+ <fieldset>
+ <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId!}">
+ <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}">
+ </fieldset>
+ </form>
<#if isVirtual && productVariantAssocs?has_content>
<#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists />
<#assign addToCartAction = "/additem/" + requestAttributes._CURRENT_VIEW_?if_exists />