WordPress.org

Make WordPress Core

Changeset 3926


Ignore:
Timestamp:
06/27/2006 01:42:52 AM (15 years ago)
Author:
ryan
Message:

More thorough URI sanitizer in wp_redirect().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r3908 r3926  
    284284    global $is_IIS;
    285285
    286     $location = str_replace( array("\n", "\r"), '', $location);
     286    $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $location);
    287287
    288288    if ($is_IIS)
Note: See TracChangeset for help on using the changeset viewer.