Make WordPress Core

Ticket #4873: 4873-2.2.diff

File 4873-2.2.diff, 570 bytes (added by westi, 17 years ago)

Backport for 2.2

  • branches/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');