Show
Ignore:
Timestamp:
09/20/07 21:53:42 (1 year ago)
Author:
markjaquith
Message:

Pass the attempted redirect host as a second parameter in the allowed_redirect_hosts filter. props mdawaffe.

Files:

Legend:

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

    r6138 r6145  
    435435    $wpp = parse_url(get_option('home')); 
    436436 
    437     $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host'])); 
     437    $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']); 
    438438 
    439439    if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) )