Invalid hrefs technically don't exist

This commit is contained in:
Markus Unterwaditzer 2014-12-06 16:30:40 +01:00
parent 772f745832
commit a0760ca171

View file

@ -303,6 +303,8 @@ class DavStorage(Storage):
def get_multi(self, hrefs):
href_xml = []
for href in uniq(hrefs):
if href != self._normalize_href(href):
raise exceptions.NotFoundError(href)
href_xml.append('<D:href>{}</D:href>'.format(href))
if not href_xml:
return ()