Commit e50b7313 authored by Leo Iannacone's avatar Leo Iannacone

return false even if argurment is undefined

parent 960157f1
...@@ -5,6 +5,8 @@ glob = require("glob") ...@@ -5,6 +5,8 @@ glob = require("glob")
Tail = require("tail").Tail Tail = require("tail").Tail
_check_no_backward = (backward_path) -> _check_no_backward = (backward_path) ->
if backward_path is undefined
return false
if typeof backward_path is 'string' if typeof backward_path is 'string'
return backward_path.indexOf("..") < 0 return backward_path.indexOf("..") < 0
return true return true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment