changeset 4574:35adb3950a39

Fix xmlrpc URL parsing so that passwords may contain a ':' character
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 21 Dec 2011 11:25:40 +0100
parents 8b2ccf6f2cf7
children c426cb251bc7
files CHANGES.txt roundup/cgi/client.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Fri Dec 16 09:23:24 2011 +0100
+++ b/CHANGES.txt	Wed Dec 21 11:25:40 2011 +0100
@@ -49,6 +49,8 @@
 - Updated version of simplified Chinese message file by Cheer Xiao:
   Corrected some mistakes, added a few more items and did some
   formating.
+- Fix xmlrpc URL parsing so that passwords may contain a ':' character
+  (Ralf)
 
 
 2011-07-15: 1.4.19
--- a/roundup/cgi/client.py	Fri Dec 16 09:23:24 2011 +0100
+++ b/roundup/cgi/client.py	Wed Dec 21 11:25:40 2011 +0100
@@ -695,7 +695,7 @@
                     except TypeError:
                         # invalid challenge
                         pass
-                    username, password = decoded.split(':')
+                    username, password = decoded.split(':', 1)
                     try:
                         login = self.get_action_class('login')(self)
                         login.verifyLogin(username, password)

Roundup Issue Tracker: http://roundup-tracker.org/