File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments