summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Component.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index 6465f03a0..fd9201cd1 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -42,8 +42,8 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
#try httpauth
if not authenticated and "Authorization" in self.headers:
- #need more checking here in case its all garbled
- namepass = decodestring(self.headers["Authorization"].strip("Basic ")).split(":")
+ binauth = self.headers['Authorization'].replace("Basic ", "")
+ namepass = decodestring(binauth).split(':')
if self.server._authenticate_connection("bogus-method",
namepass[0],
namepass[1],