Skip to content

Ambiguous Output, A One-Way Street #13

@rodneyrehm

Description

@rodneyrehm

With application/x-www-form-urlencoded any of the following declarations can be identified (because data is serialized in document order and names are not touched):

<input name="mix" value="alpha">
<input name="mix" value="bravo">
<!--
  { mix: ["alpha", "bravo"] }
  mix=alpha&mix=bravo
-->

<input name="mix[]" value="alpha">
<input name="mix[]" value="bravo">
<!--
  { mix: ["alpha", "bravo"] }
  mix[]=alpha&mix[]=bravo
-->

<input name="mix[0]" value="alpha">
<input name="mix[1]" value="bravo">
<!--
  { mix: ["alpha", "bravo"] }
  mix[0]=alpha&mix[1]=bravo
-->

<input name="mix[1]" value="bravo">
<input name="mix[0]" value="alpha">
<!--
  { mix: ["alpha", "bravo"] }
  mix[1]=alpha&mix[0]=bravo
-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions