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