WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/30/2007 05:43:27 PM (14 years ago)
Author:
markjaquith
Message:

Escape special chars in regex. Props eightize and Otto42. fixes #4873 for 2.0.12

File:
1 edited

Legend:

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

    r5442 r5989  
    260260    global $is_IIS;
    261261
    262     $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
     262    $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location);
    263263
    264264    $strip = array('%0d', '%0a');
Note: See TracChangeset for help on using the changeset viewer.