Ticket #4873: 4873-222.diff

File 4873-222.diff, 536 bytes (added by Otto42, 6 years ago)

Backported patch for 2.2.2

  • wp-includes/pluggable.php

     
    317317        if ( !$location ) // allows the wp_redirect filter to cancel a redirect 
    318318                return false;  
    319319 
    320         $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location); 
     320        $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location); 
    321321        $location = wp_kses_no_null($location); 
    322322 
    323323        $strip = array('%0d', '%0a');