[smoku] fix SASL auth. fixes #1911
This commit is contained in:
parent
68619a5597
commit
0ec4aa3676
|
@ -49,7 +49,7 @@ def challenge_splitter(data):
|
||||||
if expecting == X_KEYWORD:
|
if expecting == X_KEYWORD:
|
||||||
if char == '=':
|
if char == '=':
|
||||||
expecting = X_VALUE
|
expecting = X_VALUE
|
||||||
elif char == ',':
|
elif char in (',', ' ', '\t'):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
keyword = '%s%c' % (keyword, char)
|
keyword = '%s%c' % (keyword, char)
|
||||||
|
@ -59,7 +59,7 @@ def challenge_splitter(data):
|
||||||
end = True
|
end = True
|
||||||
else:
|
else:
|
||||||
quotes_open = True
|
quotes_open = True
|
||||||
elif char == ",":
|
elif char in (',', ' ', '\t'):
|
||||||
if quotes_open:
|
if quotes_open:
|
||||||
if not arr:
|
if not arr:
|
||||||
arr = [value]
|
arr = [value]
|
||||||
|
|
Loading…
Reference in New Issue