Make WordPress Core

Changeset 11147


Ignore:
Timestamp:
04/30/2009 11:52:32 PM (15 years ago)
Author:
markjaquith
Message:

Exclamation mark is a valid and safe character in a URI. props hakre. fixes #8904

File:
1 edited

Legend:

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

    r11136 r11147  
    877877 **/
    878878function wp_sanitize_redirect($location) {
    879     $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
     879    $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location);
    880880    $location = wp_kses_no_null($location);
    881881
Note: See TracChangeset for help on using the changeset viewer.