[wp-trac] [WordPress Trac] #36998: wp_sanitize_redirect() strips spaces out of URLs instead of encoding them
WordPress Trac
noreply at wordpress.org
Thu Jun 2 12:37:34 UTC 2016
#36998: wp_sanitize_redirect() strips spaces out of URLs instead of encoding them
------------------------------------------+-----------------------------
Reporter: hlashbrooke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by hlashbrooke):
@dd32 I agree with you there. Spaces ''should'' be formatted correctly
before being passed to `wp_redirect()`, but like you said - the sane thing
to do would be to double check that before handling the redirect. I think
patching this would be a useful improvement, if only to prevent unexpected
situations when handling redirects.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36998#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list