mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fixed bug #5779 - error with + in package names
This commit is contained in:
parent
723f1afde8
commit
a19d27a70a
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class ClientSocket:
|
||||||
|
|
||||||
def sendMsg(self, msg):
|
def sendMsg(self, msg):
|
||||||
if type(msg) == dict:
|
if type(msg) == dict:
|
||||||
msg = urllib.unquote(urllib.urlencode(msg,1))
|
msg = urllib.urlencode(msg,1)
|
||||||
length = struct.pack("H", socket.htons(len(msg)))
|
length = struct.pack("H", socket.htons(len(msg)))
|
||||||
self.socket.sendall(length)
|
self.socket.sendall(length)
|
||||||
self.socket.sendall(msg)
|
self.socket.sendall(msg)
|
||||||
|
|
|
@ -92,7 +92,7 @@ class ClientSocket(threading.Thread):
|
||||||
|
|
||||||
def sendMsg(self, msg):
|
def sendMsg(self, msg):
|
||||||
if type(msg) == dict:
|
if type(msg) == dict:
|
||||||
msg = urllib.unquote(urllib.urlencode(msg,1))
|
msg = urllib.urlencode(msg,1)
|
||||||
length = struct.pack("H", socket.htons(len(msg)))
|
length = struct.pack("H", socket.htons(len(msg)))
|
||||||
self.socket.sendall(length)
|
self.socket.sendall(length)
|
||||||
self.socket.sendall(msg)
|
self.socket.sendall(msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue