From 55f219b628234f60949cf4f84437e9a6c9e7cc22 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre Date: Thu, 8 Aug 2024 11:19:48 +0200 Subject: [PATCH] More safe chars --- bibtexautocomplete/bibtex/normalize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtexautocomplete/bibtex/normalize.py b/bibtexautocomplete/bibtex/normalize.py index f859e64..472a421 100644 --- a/bibtexautocomplete/bibtex/normalize.py +++ b/bibtexautocomplete/bibtex/normalize.py @@ -99,7 +99,7 @@ def normalize_url(url: str, previous: Optional[str] = None) -> Optional[Tuple[st logger.debug(f"INVALID URL: {url_copy}, FROM {previous}") return None domain = split.netloc - path = quote(split.path, safe="/:+") + path = quote(split.path, safe="/:+-_.~") if split.query != "": path += "?" + urlencode(parse_qsl(split.query)) if split.fragment != "":