Skip to content

Commit

Permalink
Merge pull request #1 from romrom1948/romrom1948-patch-nc-quote
Browse files Browse the repository at this point in the history
Fix RemoteResourceNotFound in Request::info when webdav_root includes special characters with ownCloud/NextCloud server
  • Loading branch information
romrom1948 committed Mar 26, 2019
2 parents 31e39ad + e05548c commit dd11bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webdav/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ def parse(response, path):
continue
else:
path_with_sep = "{path}{sep}".format(path=path, sep=Urn.separate)
if not path == urn and not path_with_sep == urn:
path_unquoted = unquote(path)
if not path == urn and not path_with_sep == urn and not path_unquoted == urn:
continue

info = dict()
Expand Down

0 comments on commit dd11bf0

Please sign in to comment.