Fixed bug when nested POST variables contained excessive characters #50

Open
wants to merge 1 commit into
from

2 participants

@shybovycha

We faced a pity situation when the form

<form ...>
<input name="question[options[a]]" />
</form>

being submit returned the object

{
  question: {
    options: {
      'a]': 'the value'
    }
  }
}

Found the bug when excessive elements were merged into the object, fixed simply removing them from the parts array being merged.

Note: this is a major-priority bugfix as it may break much functionality!

@tj
Owner
tj commented Jan 18, 2013

tests please!

@shybovycha

tested on our real project =) yet successful =)

@tj
Owner
tj commented Jan 28, 2013

that doesn't count :p

@shybovycha

Okay, what exactly do you mean saying tests please! ?

Damn! Just now read the word tests ... First N times were read as test... Sorry 😝 Anyway, what do you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment