aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-12 18:57:53 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-13 00:27:25 +0800
commit7581bfc958c8de77adbf8a502564d2263d17479d (patch)
tree132353ce55965aca67fe1ccbf9554d104726a233 /youtube_dl/utils.py
parenta3fa6024d676ec20a06fe618f5c3d6e064f49336 (diff)
[utils] Unquote crendentials passed to SOCKS proxies
Fixes #9450
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 6592c8ec2..d6f94f8cd 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -50,6 +50,7 @@ from .compat import (
compat_urllib_parse,
compat_urllib_parse_urlencode,
compat_urllib_parse_urlparse,
+ compat_urllib_parse_unquote_plus,
compat_urllib_request,
compat_urlparse,
compat_xpath,
@@ -886,7 +887,8 @@ def make_socks_conn_class(base_class, socks_proxy):
socks_type,
url_components.hostname, url_components.port or 1080,
True, # Remote DNS
- url_components.username, url_components.password
+ compat_urllib_parse_unquote_plus(url_components.username),
+ compat_urllib_parse_unquote_plus(url_components.password),
)
class SocksConnection(base_class):