From 2664732fb3434a3362704422d72973be364f2c65 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 25 Dec 2010 23:53:21 +0100 Subject: [PATCH] fixed invalid HTTP Location header (relative to absolute) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7f28e55..38123ec 100644 --- a/index.php +++ b/index.php @@ -24,6 +24,6 @@ * along with volkszaehler.org. If not, see . */ -header('Location: frontend/'); +header('Location: ' . ((isset($_SERVER['HTTPS'])) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/frontend/'); ?>