Make WordPress Core

Changeset 3939


Ignore:
Timestamp:
06/30/2006 12:43:23 AM (19 years ago)
Author:
ryan
Message:

Allow % so entities such as slashes don't break.

File:
1 edited

Legend:

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

    r3934 r3939  
    261261    global $is_IIS;
    262262
    263     $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $location);
     263    $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
     264
     265    $strip = array('%0d', '%0a');
     266    $location = str_replace($strip, '', $location);
    264267
    265268    if ($is_IIS)
Note: See TracChangeset for help on using the changeset viewer.