WordPress.org

Make WordPress Core

Changeset 5986


Ignore:
Timestamp:
08/30/2007 03:42:26 PM (11 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r5764 r5986  
    399399        return false;
    400400
    401     $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
     401    $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location);
    402402    $location = wp_kses_no_null($location);
    403403
Note: See TracChangeset for help on using the changeset viewer.