Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support malformed multipart body #1733

Merged
merged 4 commits into from Feb 1, 2024
Merged

Conversation

mnapoli
Copy link
Member

@mnapoli mnapoli commented Jan 31, 2024

For example body containing broken array keys like key0[key1][key2][.

We use parse_str to ensure keys are parsed just like native PHP would.

@mnapoli mnapoli added the bug label Jan 31, 2024
@@ -383,7 +401,7 @@ public function test POST request with multipart file uploads(int $version
--testBoundary--\r
";
$this->assertBody($body);
$this->assertParsedBody([]);
$this->assertParsedBody(null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side-effect bugfix (minor)

@mnapoli mnapoli merged commit 535ad5f into master Feb 1, 2024
8 checks passed
@mnapoli mnapoli deleted the multipart-arrays-malformed branch February 1, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant