mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Verify that file path is absolute or relative
This commit is contained in:
@@ -87,6 +87,7 @@ satisfies = (version, rawRange) ->
|
||||
resolveFilePath = (relativePath, parentModule) ->
|
||||
return unless relativePath
|
||||
return unless parentModule?.id
|
||||
return unless relativePath[0] is '.' or fs.isAbsolute(relativePath)
|
||||
return if relativePath[relativePath.length - 1] is '/'
|
||||
|
||||
resolvedPath = path.resolve(path.dirname(parentModule.id), relativePath)
|
||||
|
||||
Reference in New Issue
Block a user