From f4309707dd243bc06f82a8a550f69465ea9cd45d Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Wed, 13 Sep 2006 18:13:49 +0000 Subject: [PATCH] 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 --- .../base/org/ofbiz/base/location/OFBizHomeLocationResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java b/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java index 44554589db..278810f7d0 100644 --- a/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java +++ b/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java @@ -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, '/'); }