Author: lektran
Date: Fri Mar 16 11:13:04 2012
New Revision: 1301435
URL:
http://svn.apache.org/viewvc?rev=1301435&view=revLog:
Escape errors returned from ajax calls in the checkout pages
Modified:
ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
Modified: ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js?rev=1301435&r1=1301434&r2=1301435&view=diff==============================================================================
--- ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original)
+++ ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js Fri Mar 16 11:13:04 2012
@@ -414,7 +414,7 @@ function addPromoCode() {
var serverError = getServerError(data);
if(serverError != "") {
Effect.Appear('cartFormServerError');
- $('cartFormServerError').update(serverError);
+ $('cartFormServerError').update(serverError.escapeHTML());
} else {
Effect.Fade('cartFormServerError');
updateCartData();