Merge "Fix path exclusions" into feature/zuulv3

This commit is contained in:
Zuul 2017-10-06 04:35:50 +00:00 committed by Gerrit Code Review
commit 07cbaee770
1 changed files with 1 additions and 1 deletions

View File

@ -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