From 66c43075f3f390c10f7ed54cdc8b9eebb753ddeb Mon Sep 17 00:00:00 2001 From: kolipka Date: Thu, 17 Apr 2014 12:28:33 +0200 Subject: [PATCH] fix bug with ../.. paths joining --- build/rhino-modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rhino-modules.js b/build/rhino-modules.js index 260a866a..dbb32312 100644 --- a/build/rhino-modules.js +++ b/build/rhino-modules.js @@ -50,7 +50,7 @@ var result = []; for (i in parts) { var part = parts[i]; - if (part === '..' && result.length > 0) { + if (part === '..' && result.length > 0 && result[result.length-1] !== '..') { result.pop(); } else if (part === '' && result.length > 0) { // skip