Changeset 5988

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

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/wp-includes/pluggable.php

    r5714 r5988  
    318318        return false;  
    319319 
    320     $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location); 
     320    $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location); 
    321321    $location = wp_kses_no_null($location); 
    322322