Fix bug in URL normalization

This commit is contained in:
Markus Unterwaditzer 2016-08-19 20:03:29 +02:00
parent f238a58c85
commit e1c2e1b5d8

View file

@ -19,8 +19,15 @@ dav_logger = logging.getLogger(__name__)
CALDAV_DT_FORMAT = '%Y%m%dT%H%M%SZ'
_path_reserved_chars = frozenset(utils.compat.urlquote(x, '')
for x in "/?#[]!$&'()*+,;=")
def _generate_path_reserved_chars():
for x in "/?#[]!$&'()*+,;=":
x = utils.compat.urlquote(x, '')
yield x.upper()
yield x.lower()
_path_reserved_chars = frozenset(_generate_path_reserved_chars())
del _generate_path_reserved_chars
def _contains_quoted_reserved_chars(x):