From 2a5d2eac61c7ea8bc4fee7128ea4cc658c05b7bc Mon Sep 17 00:00:00 2001 From: calvin Date: Thu, 16 Sep 2004 21:16:42 +0000 Subject: [PATCH] add question mark to url_needs_quoting charset git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1810 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/url.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/url.py b/linkcheck/url.py index 403a9915..092f9d16 100644 --- a/linkcheck/url.py +++ b/linkcheck/url.py @@ -309,12 +309,12 @@ def match_host (host, domainlist): return False -_safe_url_chars = re.compile(r"^[-a-zA-Z0-9_:/\.,~;=&#%()@]*$") +_safe_url_chars = re.compile(r"^[-a-zA-Z0-9_:/\.,~;=&#%()@\?]*$") def url_needs_quoting (url): """Check if url needs percent quoting. Note that the method does only check basic character sets, and not any other syntax. The URL might still be syntactically incorrect even when - it is properly quoted.. + it is properly quoted. """ if url.rstrip() != url: # handle trailing whitespace as a special case