From 5177c0e5c7df027c3a02f9f6b9ad7dcbc48d34ce Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 20 Sep 2007 21:53:42 +0000 Subject: [PATCH] Pass the attempted redirect host as a second parameter in the allowed_redirect_hosts filter. props mdawaffe. git-svn-id: http://svn.automattic.com/wordpress/trunk@6145 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index d6c20ce4f4..530fe7d481 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -434,7 +434,7 @@ function wp_safe_redirect($location, $status = 302) { $lp = parse_url($location); $wpp = parse_url(get_option('home')); - $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host'])); + $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']); if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) ) $location = get_option('siteurl') . '/wp-admin/';