Changeset 5989

Show
Ignore:
Timestamp:
08/30/07 17:43:27 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

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