commit | f082f97203fa8f28cdab5ae3c027371776a824ac | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Tue Mar 22 23:04:49 2011 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Tue Mar 22 23:04:49 2011 +0000 |
tree | 331adf61f8c8712bb73cf5a1a01a9bd56f973dcf | |
parent | 62f23009fe7404d13b2709b8a1d26cca411309d1 [diff] |
FELIX-2707 Fix cutting of the URL entry path which may not match the entry path looked up git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1084402 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java index d30a83f..76f78b7 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java
@@ -136,7 +136,7 @@ // calculate the key String entryPath = entry.getPath(); - final int start = 1 + file.length(); // leading slash + final int start = entryPath.lastIndexOf( '/' ) + 1 + fileName.length(); // path, slash and base name final int end = entryPath.length() - 11; // .properties suffix entryPath = entryPath.substring( start, end );