mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Invalid hrefs technically don't exist
This commit is contained in:
parent
772f745832
commit
a0760ca171
1 changed files with 2 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ class DavStorage(Storage):
|
||||||
def get_multi(self, hrefs):
|
def get_multi(self, hrefs):
|
||||||
href_xml = []
|
href_xml = []
|
||||||
for href in uniq(hrefs):
|
for href in uniq(hrefs):
|
||||||
|
if href != self._normalize_href(href):
|
||||||
|
raise exceptions.NotFoundError(href)
|
||||||
href_xml.append('<D:href>{}</D:href>'.format(href))
|
href_xml.append('<D:href>{}</D:href>'.format(href))
|
||||||
if not href_xml:
|
if not href_xml:
|
||||||
return ()
|
return ()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue