Show
Ignore:
Timestamp:
10/10/07 19:26:21 (11 months ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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