Merge "Fix path exclusions" into feature/zuulv3
This commit is contained in:
commit
07cbaee770
|
@ -24,7 +24,7 @@ import ansible.plugins.lookup
|
||||||
|
|
||||||
def _is_safe_path(path):
|
def _is_safe_path(path):
|
||||||
full_path = os.path.realpath(os.path.abspath(os.path.expanduser(path)))
|
full_path = os.path.realpath(os.path.abspath(os.path.expanduser(path)))
|
||||||
if not full_path.startswith(os.path.abspath(os.path.curdir)):
|
if not full_path.startswith(os.path.abspath(os.path.expanduser('~'))):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue