-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Input value "_method" contains a non-scalar value. #48871
Comments
It seems that the issue also exist in Symfony HTTP Foundation, might worth it to report the issue there. |
This is not a Symfony bug, but the API design decision.
|
Thanks @mbabker. Seems things work as expected here then. We'd appreciate a PR to avoid logging this specific exception! |
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
We'd still appreciate a PR for this one, thanks. |
Laravel Version
10.29.0
PHP Version
8.2.2
Database Driver & Version
No response
Description
One of my sites has been getting attacked today and one of the things they did is posted
_method
as an array to a form endpoint. Which throws an error(stack trace removed for security): https://flareapp.io/share/DPyKdV65This is the relevant line:
Steps To Reproduce
In a new Laravel install (with Pest) make a test like:
The text was updated successfully, but these errors were encountered: