Make WordPress Core

Changeset 5988


Ignore:
Timestamp:
08/30/2007 05:38:47 PM (17 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.