aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'php/admin/logout.php')
-rw-r--r--php/admin/logout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/admin/logout.php b/php/admin/logout.php
index f876efe..0219191 100644
--- a/php/admin/logout.php
+++ b/php/admin/logout.php
@@ -7,4 +7,4 @@
require_once('../cfg/init.php');
require_once(LIB.'/auth.php');
Auth::logout();
-header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/login.php');
+header('Location: '.$_SERVER['HTTP_PROTO'].'://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/login.php');