[wp-trac] [WordPress Trac] #44317: wp_safe_redirect() and wp_redirect() shouldn't allow non-3xx status codes
WordPress Trac
noreply at wordpress.org
Mon Nov 4 12:57:28 UTC 2019
#44317: wp_safe_redirect() and wp_redirect() shouldn't allow non-3xx status codes
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner:
| johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.4
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch needs- | Focuses:
testing has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"46649" 46649]:
{{{
#!CommitTicketReference repository="" revision="46649"
Build/Test Tools: Adjust the test for `wp_redirect()` status codes added
in [46641] per the documentation and coding standards.
Move the test to a more appropriate place for consistency with
`wp_sanitize_redirect()` and `wp_validate_redirect()` tests.
See #44317.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44317#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list