Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28362


Ignore:
Timestamp:
05/26/2014 10:43:52 AM (11 years ago)
Author:
SergeyBiryukov
Comment:

Related: [3926], [3939], [11147].

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28362

    • Property Keywords has-patch added
    • Property Version changed from 3.9.1 to 2.0.4
    • Property Milestone changed from Awaiting Review to 4.0
  • Ticket #28362 – Description

    initial v1  
    44
    55To reproduce, open wp-includes/pluggable.php and drop in some debug in the wp_redirect function:
     6{{{
    67echo '<pre>DEBUG: ' . print_r($location, true) . '</pre>';
    78$location = wp_sanitize_redirect($location);
    89echo '<pre>DEBUG: ' . print_r($location, true) . '</pre>';
    910die();
    10 
    11 Then just use wp_redirect('http://google.com/test=12345*abcdef', 301); and you'll see the * is being stripped incorrectly.
     11}}}
     12Then just use `wp_redirect('http://google.com/test=12345*abcdef', 301);` and you'll see the * is being stripped incorrectly.