Skip to content

Commit

Permalink
Fix double quoting URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
dlazesz committed Nov 28, 2020
1 parent a6b47a3 commit f20ba7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webarticlecurator/enhanced_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def _download_url(self, url):
return None

scheme, netloc, path, params, query, fragment = urlparse(url)
path = quote(path) # For safety urlencode the generated URL... (The URL might by modified in this step.)
# For safety urlencode the generated URL... (The URL might by modified in this step.)
path = quote(path, safe='/%')
url_reparsed = urlunparse((scheme, netloc, path, params, query, fragment))

try: # The actual request (on the reparsed URL, everything else is made on the original URL)
Expand Down
2 changes: 1 addition & 1 deletion webarticlecurator/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env pyhton3
# -*- coding: utf-8, vim: expandtab:ts=4 -*-

__version__ = '1.0.4'
__version__ = '1.0.5'

0 comments on commit f20ba7f

Please sign in to comment.