SASL challenges that have '=' in a value can now be parsedr; '=' in a base-64 encoded nonce is rather common

This commit is contained in:
Travis Shirk 2005-11-29 20:27:57 +00:00
parent 820dae2642
commit fb4e8f254d
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class SASL(PlugIn):
data=base64.decodestring(incoming_data)
self.DEBUG('Got challenge:'+data,'ok')
for pair in data.split(','):
key,value=pair.split('=')
key,value=pair.split('=',1)
if value[:1]=='"' and value[-1:]=='"': value=value[1:-1]
chal[key]=value
if chal.has_key('qop') and chal['qop']=='auth':