Fix a bug reported on user ML by Amit Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-4
@@ -117,8 +117,7 @@ if (inlineProduct) {
|
||||
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 @@ if (inlineProduct) {
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user