Author: jacopoc
Date: Wed Aug 1 03:47:05 2007
New Revision: 561759
URL:
http://svn.apache.org/viewvc?view=rev&rev=561759Log:
Fix for index out of bounds exception reported by Bilgin Ibryam.
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=561759&r1=561758&r2=561759==============================================================================
--- 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 03:47:05 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());