[wp-trac] [WordPress Trac] #62932: Fatal error in rest api with invalid inputs
WordPress Trac
noreply at wordpress.org
Thu Feb 27 23:17:54 UTC 2025
#62932: Fatal error in rest api with invalid inputs
-----------------------------------+----------------------------
Reporter: dd32 | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: low | Milestone: 6.8
Component: REST API | Version:
Severity: trivial | Resolution: fixed
Keywords: php8 has-patch commit | Focuses: rest-api
-----------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"59886" 59886]:
{{{
#!CommitTicketReference repository="" revision="59886"
REST API: Exit gracefully for malformed URLs.
Exit gracefully for requests with a malformed `rest_route` query string
parameter, ie anything that is not a string.
This prevents fatal errors from occurring with URLs such as
`example.com/?rest_route[]=array` as the URL is user input so logging the
data provides no benefit to developers as they are unable to resolve the
issue.
Props geekofshire, dd32, timothyblynjacobs.
Fixes #62932.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62932#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list