Replaced urllib.parse.unquote() with urllib.parse.unquote_plus() in UrlBuilder.
This commit is contained in:
parent
21281da3ed
commit
bb93f601ad
@ -163,8 +163,8 @@ class UrlBuilder:
|
|||||||
self.params = []
|
self.params = []
|
||||||
for piece in start_url[pos + 1:].split("&"):
|
for piece in start_url[pos + 1:].split("&"):
|
||||||
pos = piece.find("=")
|
pos = piece.find("=")
|
||||||
name = urllib.parse.unquote(piece[:pos])
|
name = urllib.parse.unquote_plus(piece[:pos])
|
||||||
value = urllib.parse.unquote(piece[pos + 1:])
|
value = urllib.parse.unquote_plus(piece[pos + 1:])
|
||||||
self.params.append(self.Param(name, value))
|
self.params.append(self.Param(name, value))
|
||||||
|
|
||||||
def add(self, name, value):
|
def add(self, name, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user