[wp-trac] [WordPress Trac] #44991: wp-login.php postpass no redirect
WordPress Trac
noreply at wordpress.org
Tue Sep 25 14:52:12 UTC 2018
#44991: wp-login.php postpass no redirect
------------------------------------+-----------------------------
Reporter: lukelr | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 4.9.8
Severity: normal | Keywords:
Focuses: |
------------------------------------+-----------------------------
I'm running wordpress 4.9.8 on an Archlinux host. Whenever I try to
password protect a post, the redirection after entering the correct
password fails. Going back to the post using the browser history works,
and the post is unlocked, but only a blank page is visible to the user
after entering the password.
I suspect
{{{
wp_get_referer();
}}}
to be the root of the problem. I've added some debug output to the code:
{{{
$referer = wp_get_referer();
if ( $referer ) {
$secure = ( 'https' === parse_url( $referer, PHP_URL_SCHEME ) );
print "True";
} else {
$secure = false;
print "False";
}
}}}
and it prints "False" on that formerly blank white page after entering the
password. Also adding
{{{
print $referer;
print $_SERVER['HTTP_REFERER'];
}}}
to the code prints nothing.
I've tested different up-to-date browsers: Firefox, Chromium on Linux,
Firefox, Opera on Windows 8.1, Firefox Klar, Safari on iOS, to no avail.
Only Internet Explorer on Windows 8.1 works as expected, the redirect
occurs immediately.
Any ideas what could cause this problem, or how to further debug this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44991>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list