svn commit: r1301435 - /ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js

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

svn commit: r1301435 - /ofbiz/branches/release10.04/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js

lektran
Author: lektran
Date: Fri Mar 16 11:13:04 2012
New Revision: 1301435

URL: http://svn.apache.org/viewvc?rev=1301435&view=rev
Log:
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();