[wp-trac] [WordPress Trac] #42961: Rest API doesnt handle empty arrays in querystring correctly
WordPress Trac
noreply at wordpress.org
Thu Mar 22 18:00:17 UTC 2018
#42961: Rest API doesnt handle empty arrays in querystring correctly
--------------------------+------------------------------
Reporter: steffanhalv | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
--------------------------+------------------------------
Comment (by schlessera):
> One option would be to run array_filter() on any array items in the
query string, but doing so also means moving away from standard PHP URL
parsing quirks.
Going with "standard PHP URL parsing quirks" also seems wrong to me,
though, as the URL should be parsed in a reliable way, no matter the
language the server is written in. The code should implement whatever is
the expected behavior from the URL alone, even if it differs from standard
PHP behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42961#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list