Browse Source

Merge "Fix path exclusions" into feature/zuulv3

changes/35/510135/1
Zuul 5 years ago committed by Gerrit Code Review
parent
commit
07cbaee770
  1. 2
      zuul/ansible/paths.py

2
zuul/ansible/paths.py

@ -24,7 +24,7 @@ import ansible.plugins.lookup
def _is_safe_path(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 True

Loading…
Cancel
Save