From 06033914050633d51c45d6b5e79884bcc66283f8 Mon Sep 17 00:00:00 2001
From: Kamil Domanski <kdomanski@kdemail.net>
Date: Mon, 20 Jun 2011 21:09:34 +0200
Subject: [PATCH] fixed page reload after logout

---
 index.php     | 2 +-
 lib/setup.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php
index 5aaa8fb89c0..d1726676c66 100644
--- a/index.php
+++ b/index.php
@@ -47,7 +47,7 @@ elseif($not_installed OR $install_called) {
 elseif(OC_USER::isLoggedIn()) {
 	if(isset($_GET["logout"]) and ($_GET["logout"])) {
 		OC_USER::logout();
-		header("Location: $WEBROOT");
+		header("Location: ".$WEBROOT.'/');
 		exit();
 	}
 	else {
diff --git a/lib/setup.php b/lib/setup.php
index 5905261f18f..bdb5dcc4e24 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -23,7 +23,7 @@ if(isset($_POST['install']) AND $_POST['install']=='true') {
 		OC_TEMPLATE::printGuestPage("", "installation", $options);
 	}
 	else {
-		header("Location: $WEBROOT$SUBURI");
+		header("Location: ".$WEBROOT.'/');
 		exit();
 	}
 }
-- 
GitLab