Make WordPress Core

Ticket #4873: 4873-trunk.diff

File 4873-trunk.diff, 536 bytes (added by Otto42, 17 years ago)

Recreated diff for trunk

  • wp-includes/pluggable.php

     
    398398        if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    399399                return false;
    400400
    401         $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
     401        $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location);
    402402        $location = wp_kses_no_null($location);
    403403
    404404        $strip = array('%0d', '%0a');