Skip to content

Commit 753679c

Browse files
authored
Merge pull request #184 from runderwood/master
Remove expandvars call in unsafe path check (closes #152)
2 parents da04180 + 6890782 commit 753679c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bagit.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,6 @@ def _path_is_dangerous(self, path):
932932
return True
933933
if os.path.expanduser(path) != path:
934934
return True
935-
if os.path.expandvars(path) != path:
936-
return True
937935
real_path = os.path.realpath(os.path.join(self.path, path))
938936
real_path = os.path.normpath(real_path)
939937
bag_path = os.path.realpath(self.path)

0 commit comments

Comments
 (0)