#3373 closed defect (bug) (fixed)
Avoid PHP warning on invalid input
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6.5 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | General | Keywords: | has-patch |
| Cc: |
Description
I don't know why, but WordPress.org is getting a bunch of requests similar to this:
/support/search/the/?action[]=bbp-search-request&bbp_search=the
that triggers a PHP warning such as:
E_WARNING: wp-includes/formatting.php:2151 - strtolower() expects parameter 1 to be string, array given
that can be traced back to bbPress passing the action array to sanitize_key.
Attached patch just disregards the parameter if it's not a string.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 7080: