svn commit: r574171 - /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: r574171 - /ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java

jleroux@apache.org
Author: jleroux
Date: Mon Sep 10 01:27:01 2007
New Revision: 574171

URL: http://svn.apache.org/viewvc?rev=574171&view=rev
Log:
Applied fix from trunk for revision: 561701

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=574171&r1=574170&r2=574171&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 Mon Sep 10 01:27:01 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) {