Author: jleroux
Date: Thu Sep 13 12:56:49 2007
New Revision: 575421
URL:
http://svn.apache.org/viewvc?rev=575421&view=revLog:
Applied fix from trunk for revision: 561759
Modified:
ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java
Modified: ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java?rev=575421&r1=575420&r2=575421&view=diff==============================================================================
--- ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java (original)
+++ ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java Thu Sep 13 12:56:49 2007
@@ -56,7 +56,7 @@
// make the link
StringBuffer newURL = new StringBuffer();
ContentUrlTag.appendContentPrefix(request, newURL);
- if (newURL.charAt(newURL.length() - 1) != '/' && buf.charAt(0) != '/') {
+ if (newURL.length() > 0 && newURL.charAt(newURL.length() - 1) != '/' && buf.charAt(0) != '/') {
newURL.append('/');
}
newURL.append(buf.toString());