Changeset 6219

Show
Ignore:
Timestamp:
10/10/07 19:25:23 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

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