mirror of
https://github.com/appen-isen/site-interpromos.git
synced 2026-01-18 16:37:33 +01:00
fix: remove buggy scheme on localhost
This commit is contained in:
@@ -13,9 +13,8 @@
|
||||
*/
|
||||
function redirect(string $page): void
|
||||
{
|
||||
$scheme = $_SERVER['REQUEST_SCHEME'];
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
||||
header("Location: $scheme://$host$uri/$page");
|
||||
header("Location: //$host$uri/$page");
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user