blob: d1f4df4d375015cf29ba762e5262b2ebea953f99 [file] [log] [blame]
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="loading/authentication-after-redirect-stores-wrong-credentials"');
header('HTTP/1.0 401 Unauthorized');
exit;
}
?>
<script>
// This page was supposed to be loaded using a 127.0.0.1 URL.
// That is important, and the final page has to be loaded using localhost.
// Plus, the redirect to the final page in this test has to be a new page load to trigger the bug; It cannot be an HTTP redirect.
window.setTimeout("window.location = 'http://localhost:8000/loading/authentication-after-redirect-stores-wrong-credentials/resources/wrong-credential-3-output-credentials-then-finish.php';", 0);
</script>