Skip to content

Commit

Permalink
Handle filenames containing quotation marks (#27)
Browse files Browse the repository at this point in the history
Should we use urllib.request.pathname2url instead?
  • Loading branch information
Arun Prasannan committed Aug 12, 2021
1 parent 95a6f96 commit 2629bf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyaff4/escaping.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def arnPathFragment_from_path(pathName):
escaped_path.append("/")
elif c == ' ':
escaped_path.append("%20")
elif c == '"':
escaped_path.append("%22")
elif c == '%':
escaped_path.append("%25")
elif c in FORBIDDEN:
Expand Down

0 comments on commit 2629bf5

Please sign in to comment.