webdav4 icon indicating copy to clipboard operation
webdav4 copied to clipboard

WebdavFileSystem functions not escaping special characters

Open code1997 opened this issue 1 year ago • 0 comments

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.

code1997 avatar Oct 16 '24 18:10 code1997