#3373 closed defect (bug) (fixed)
Avoid PHP warning on invalid input
| Reported by: | dd32 | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6.5 |
| Component: | General | Version: | 2.1 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 7080: