Make WordPress Core

Changeset 6219


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

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

File:
1 edited

Legend:

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

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