]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed page reload after logout
authorKamil Domanski <kdomanski@kdemail.net>
Mon, 20 Jun 2011 19:09:34 +0000 (21:09 +0200)
committerKamil Domanski <kdomanski@kdemail.net>
Mon, 20 Jun 2011 19:09:34 +0000 (21:09 +0200)
index.php
lib/setup.php

index 5aaa8fb89c0e06c207a22d4f3c02bdabba02780b..d1726676c66be108eea969b2316f324324a8d2ae 100644 (file)
--- 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 {
index 5905261f18f17b7461d9f174f0076d9a705a7ebe..bdb5dcc4e24db4ae60112308aa15771eacac0190 100644 (file)
@@ -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();
        }
 }