Skip to content

Commit 355e896

Browse files
committed
encoding fixes
1 parent e96789a commit 355e896

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/cgi/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def handle_xmlrpc(self):
479479
self.instance.actions,
480480
self.translator,
481481
allow_none=True)
482-
output = s2b(handler.dispatch(input))
482+
output = handler.dispatch(input)
483483

484484
self.setHeader("Content-Type", "text/xml")
485485
self.setHeader("Content-Length", str(len(output)))
@@ -845,10 +845,10 @@ def determine_user(self):
845845
scheme, challenge = auth.split(' ', 1)
846846
if scheme.lower() == 'basic':
847847
try:
848-
decoded = base64.decodestring(challenge)
848+
decoded = b2s(base64.b64decode(challenge))
849849
except TypeError:
850850
# invalid challenge
851-
pass
851+
decoded = ''
852852
username, password = decoded.split(':', 1)
853853
try:
854854
# Current user may not be None, otherwise

0 commit comments

Comments
 (0)