Skip to content

Commit

Permalink
Merge pull request formencode#55 from mooc0w/master
Browse files Browse the repository at this point in the history
Variables with two dashes cause variable decode to crash.
  • Loading branch information
Cito committed Jan 17, 2014
2 parents be541f1 + 5eac82d commit aa8d5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formencode/variabledecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def variable_decode(d, dict_char='.', list_char='-'):
was_repetition_count = True
break
elif list_char in key:
maybe_key, index = key.split(list_char)
maybe_key, index = key.split(list_char, 1)
if not index.isdigit():
new_keys.append(key)
else:
Expand Down

0 comments on commit aa8d5af

Please sign in to comment.