[libbluray-devel] BDJXletContext: fix resource resolving for resources starting with ./
hpi1
git at videolan.org
Mon Jan 20 14:39:42 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 20 15:24:52 2014 +0200| [09a3f4716c4ce76edde5108fb73df4c9c7cd2f9a] | committer: hpi1
BDJXletContext: fix resource resolving for resources starting with ./
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=09a3f4716c4ce76edde5108fb73df4c9c7cd2f9a
---
src/libbluray/bdj/java/org/videolan/BDJXletContext.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
index 9759276..d4559ba 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
@@ -121,6 +121,10 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
return null;
}
+ if (path.startsWith("./") || path.startsWith(".\\")) {
+ path = path.substring(2);
+ }
+
URL url = cldr.getResource(path);
if (url == null) {
logger.error("getCurrentResource(): " + path + " not found: " + Logger.dumpStack());
More information about the libbluray-devel
mailing list