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:
@@ -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, '/');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user