- make AssetKey not flatten relative paths

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10205 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-01-27 20:54:31 +00:00
parent 4d4801bb93
commit 437d34636b

View File

@ -152,9 +152,10 @@ public class AssetKey<T> implements Savable, Cloneable {
if (string.length() == 0 || string.equals(".")) {
//do nothing
} else if (string.equals("..")) {
if (list.size() > 0) {
if (list.size() > 0 && !list.getLast().equals("..")) {
list.removeLast();
} else {
list.add("..");
Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path is outside assetmanager root");
}
} else {