Make WordPress Core

Ticket #5114: pluggable.php.diff

File pluggable.php.diff, 665 bytes (added by BoltClock, 18 years ago)
  • wp-includes/pluggable.php

     
    435435        $wpp = parse_url(get_option('home'));
    436436
    437437        $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']);
     438        $allowed_hosts = array_map('strtolower', $allowed_hosts);
    438439
    439         if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) )
     440        if ( isset($lp['host']) && !in_array(strtolower($lp['host']), $allowed_hosts) )
    440441                $location = get_option('siteurl') . '/wp-admin/';
    441442
    442443        wp_redirect($location, $status);