svn commit: r744088 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy

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

svn commit: r744088 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy

jleroux@apache.org
Author: jleroux
Date: Fri Feb 13 11:47:02 2009
New Revision: 744088

URL: http://svn.apache.org/viewvc?rev=744088&view=rev
Log:
Fix a bug reported on user ML by Amit Sharma

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy?rev=744088&r1=744087&r2=744088&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/InlineProductDetail.groovy Fri Feb 13 11:47:02 2009
@@ -117,8 +117,7 @@
     mainDetailImage = productContentWrapper.get("DETAIL_IMAGE_URL");
     if (mainDetailImage) {
         mainDetailImageUrl = ContentUrlTag.getContentPrefix(request) + mainDetailImage;
-        mainDetailImageUrl = URLEncoder.encode(Base64.base64Encode(mainDetailImage), "UTF-8");
-        context.mainDetailImageUrl = mainDetailImageUrl;
+        context.mainDetailImageUrl = mainDetailImageUrl.toString();
     }
 
 
@@ -235,8 +234,6 @@
                             // append the content prefix
                             if (detailImage) {
                                 detailImageUrl = ContentUrlTag.getContentPrefix(request) + detailImage;
-                                // base64 encode the image url for a little protection
-                                detailImageUrl = URLEncoder.encode(Base64.base64Encode(detailImageUrl), "UTF-8");
                             }
                             if (largeImage) {
                                 largeImageUrl = ContentUrlTag.getContentPrefix(request) + largeImage;