webdav4
webdav4 copied to clipboard
WebdavFileSystem functions not escaping special characters
Hi there,
webdav4 keeps crashing if the file path contains certain special characters. Examples would be:
- A folder with a whitespace at the end of the foldername - 'Example '.
- A folder or file containing #, or % in the name - 'Zimmer #309'
The issue is missing url quotation. Calling urllib.parse.quote() on the path variable fixes the issue.
I think that this should be builtin, as the function does not provide url encoded names, but requires them. If you do not want to built it in, this should at least be documented.