Opened 10 years ago
Closed 9 years ago
#36362 closed defect (bug) (fixed)
check_ajax_referer() does not send a 403 response code upon failure
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.7 | Priority: | normal |
| Severity: | normal | Version: | 3.4 |
| Component: | Security | Keywords: | has-patch |
| Focuses: | Cc: |
Description
When check_ajax_referer() fails, a 200 HTTP response code is still sent back to the client, whereas check_admin_referer() correctly returns a 403.
The _ajax_wp_die_handler() function lacks the ability to provide an HTTP response code.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 38421: