Author: mor
Date: Wed Jul 1 10:28:24 2009 New Revision: 790101 URL: http://svn.apache.org/viewvc?rev=790101&view=rev Log: String wrapped the styleSheet and javaScript context variable as earlier they were causing new session to be created. Applied patch from Arun Patidar, part of OFBIZ-2672 (https://issues.apache.org/jira/browse/OFBIZ-2672) Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl?rev=790101&r1=790100&r2=790101&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl Wed Jul 1 10:28:24 2009 @@ -26,7 +26,7 @@ <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON.get(0)/> </#if> <#if shortcutIcon?has_content> - <link rel="shortcut icon" href="<@ofbizContentUrl>${shortcutIcon}</@ofbizContentUrl>" /> + <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" /> </#if> <#if layoutSettings.javaScripts?has_content> <#--layoutSettings.javaScripts is a list of java scripts. --> @@ -35,35 +35,35 @@ <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> - <script type="text/javascript" src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>"></script> + <script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script> </#if> </#list> </#if> <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> - <script type="text/javascript" src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>" type="text/javascript"></script> + <script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script> </#list> </#if> <#if layoutSettings.styleSheets?has_content> <#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet, AND a component style sheet.--> <#list layoutSettings.styleSheets as styleSheet> - <link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/> + <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/> </#list> </#if> <#if layoutSettings.VT_STYLESHEET?has_content> <#list layoutSettings.VT_STYLESHEET as styleSheet> - <link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/> + <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/> </#list> </#if> <#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl"> <#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.--> <#list layoutSettings.rtlStyleSheets as styleSheet> - <link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/> + <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/> </#list> </#if> <#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl"> <#list layoutSettings.VT_RTL_STYLESHEET as styleSheet> - <link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/> + <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/> </#list> </#if> ${layoutSettings.extraHead?if_exists} @@ -75,11 +75,11 @@ <#-- Append CSS for catalog --> <#if catalogStyleSheet?exists> - <link rel="stylesheet" href="${catalogStyleSheet}" type="text/css"/> + <link rel="stylesheet" href="${StringUtil.wrapString(catalogStyleSheet)}" type="text/css"/> </#if> <#-- Append CSS for tracking codes --> <#if sessionAttributes.overrideCss?exists> - <link rel="stylesheet" href="${sessionAttributes.overrideCss}" type="text/css"/> + <link rel="stylesheet" href="${StringUtil.wrapString(sessionAttributes.overrideCss)}" type="text/css"/> </#if> <#-- Meta tags if defined by the page action --> <#if metaDescription?exists> |
Free forum by Nabble | Edit this page |