From db8ffe1dc71024c4096251007c118cb0261bed58 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 17 Jun 2015 15:52:29 +0800 Subject: [PATCH] Handle ".." in asar path, fix #1982 --- atom/common/lib/asar.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/atom/common/lib/asar.coffee b/atom/common/lib/asar.coffee index 7ce89156..ee6d18e4 100644 --- a/atom/common/lib/asar.coffee +++ b/atom/common/lib/asar.coffee @@ -20,6 +20,7 @@ process.on 'exit', -> splitPath = (p) -> return [false] if typeof p isnt 'string' return [true, p, ''] if p.substr(-5) is '.asar' + p = path.normalize p index = p.lastIndexOf ".asar#{path.sep}" return [false] if index is -1 [true, p.substr(0, index + 5), p.substr(index + 6)] -- 2.43.0