Make WordPress Core

Changeset 6220


Ignore:
Timestamp:
10/10/2007 07:26:21 PM (17 years ago)
Author:
markjaquith
Message:

check for a match against a lowercase host in wp_safe_redirect(). props BoltClock. fixes #5114 for 2.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/pluggable.php

    r6145 r6220  
    437437    $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']);
    438438
    439     if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) )
     439    if ( isset($lp['host']) && ( !in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host'])) )
    440440        $location = get_option('siteurl') . '/wp-admin/';
    441441
Note: See TracChangeset for help on using the changeset viewer.