Changeset 3940

Show
Ignore:
Timestamp:
06/30/06 00:44:21 (3 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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)