Skip to content

Commit

Permalink
escape doc string (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrabben authored Aug 4, 2023
1 parent ed81c23 commit da5656c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bagit.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ def _path_is_dangerous(self, path):
"""
Return true if path looks dangerous, i.e. potentially operates
outside the bagging directory structure, e.g. ~/.bashrc, ../../../secrets.json,
\\?\c:\, D:\sys32\cmd.exe
\\\\?\\c:\\, D:\\sys32\\cmd.exe
"""
if os.path.isabs(path):
return True
Expand Down

0 comments on commit da5656c

Please sign in to comment.