[Pkg-javascript-commits] [less.js] 20/50: fix bug with ../.. paths joining

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:22:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v1.7.1
in repository less.js.

commit 66c43075f3f390c10f7ed54cdc8b9eebb753ddeb
Author: kolipka <klipner777 at gmail.com>
Date:   Thu Apr 17 12:28:33 2014 +0200

    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 260a866..dbb3231 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list