svn commit: r575421 - /ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r575421 - /ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java

jleroux@apache.org
Author: jleroux
Date: Thu Sep 13 12:56:49 2007
New Revision: 575421

URL: http://svn.apache.org/viewvc?rev=575421&view=rev
Log:
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());