Handle ".." in asar path, fix #1982
This commit is contained in:
parent
ad59393641
commit
db8ffe1dc7
1 changed files with 1 additions and 0 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue