[wp-trac] [WordPress Trac] #36998: wp_sanitize_redirect() strips spaces out of URLs instead of encoding them

WordPress Trac noreply at wordpress.org
Fri Oct 11 23:52:22 UTC 2019


#36998: wp_sanitize_redirect() strips spaces out of URLs instead of encoding them
--------------------------------------+-----------------------------
 Reporter:  hlashbrooke               |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  Formatting                |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46462" 46462]:
 {{{
 #!CommitTicketReference repository="" revision="46462"
 Formatting: Make sure `wp_sanitize_redirect()` encodes spaces in URLs
 instead of stripping them out.

 Props donmhico, hlashbrooke, dd32, azaozz.
 Fixes #36998.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36998#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list