Applied patch from Adam Heath to fix off by one error; Undersun Jira #OFBIZ-378

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@443051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2006-09-13 18:13:49 +00:00
parent bd062504b5
commit f4309707dd
@@ -42,7 +42,7 @@ public class OFBizHomeLocationResolver implements LocationResolver {
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, '/');
}