Make WordPress Core


Ignore:
Timestamp:
06/30/2006 12:44:21 AM (20 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/pluggable-functions.php

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