Author: jonesde
Date: Wed Sep 13 11:13:49 2006
New Revision: 443051

URL: http://svn.apache.org/viewvc?view=rev&rev=443051
Log:
Applied patch from Adam Heath to fix off by one error; Undersun Jira #OFBIZ-378

Modified:
    
incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java

Modified: 
incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java?view=diff&rev=443051&r1=443050&r2=443051
==============================================================================
--- 
incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java
 (original)
+++ 
incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java
 Wed Sep 13 11:13:49 2006
@@ -42,7 +42,7 @@
         StringBuffer baseLocation = new 
StringBuffer(FlexibleLocation.stripLocationType(location));
         
         // if there is not a forward slash between the two, add it
-        if (baseLocation.charAt(0) != '/' && 
propValue.charAt(propValue.length()) != '/') {
+        if (baseLocation.charAt(0) != '/' && 
propValue.charAt(propValue.length() - 1) != '/') {
             baseLocation.insert(0, '/');
         }
         


Reply via email to