Author: jonesde
Date: Wed Aug 1 01:12:58 2007
New Revision: 561701
URL:
http://svn.apache.org/viewvc?view=rev&rev=561701Log:
Fixed issue when there is no forward slash in the prefix or in the value in the ofbizContentUrl transform
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java?view=diff&rev=561701&r1=561700&r2=561701==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java Wed Aug 1 01:12:58 2007
@@ -56,6 +56,9 @@
// make the link
StringBuffer newURL = new StringBuffer();
ContentUrlTag.appendContentPrefix(request, newURL);
+ if (newURL.charAt(newURL.length() - 1) != '/' && buf.charAt(0) != '/') {
+ newURL.append('/');
+ }
newURL.append(buf.toString());
out.write(newURL.toString());
} catch (TemplateModelException e) {