Fix SCRAM to support attributes which value has only one character

This commit is contained in:
Badlop 2011-09-05 23:21:38 +02:00
parent 76a174a007
commit 20f3fc96c3
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ mech_step(#state{step = 4} = State, ClientIn) ->
parse_attribute(Attribute) ->
AttributeLen = string:len(Attribute),
if
AttributeLen > 3 ->
AttributeLen >= 3 ->
SecondChar = lists:nth(2, Attribute),
case is_alpha(lists:nth(1, Attribute)) of
true ->