mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix bug in URL normalization
This commit is contained in:
parent
f238a58c85
commit
e1c2e1b5d8
1 changed files with 9 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue