Honor the request scheme when redirecting the user

pull/49/head
Ludovic Poujol 4 years ago
parent 2125055409
commit ead51deca6

@ -27,7 +27,7 @@ function test_exist($file) {
}
function http_redirect($path) {
header('Location: http://'.$_SERVER['HTTP_HOST'].$path);
header('Location: '.$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$path);
exit(0);
}

Loading…
Cancel
Save