From 799c1ead821469d7c75c9d7621cd9ea517e5a0f2 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 15 Jul 2012 11:39:03 +0200 Subject: Redirect to the home page after successful login Jump to the home page instead of displaying a page that only tells you that you're logged in. Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index fcc6a603..d58c7590 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -414,7 +414,7 @@ function try_login($dbh=NULL) { $cookie_time = 0; setcookie("AURSID", $new_sid, $cookie_time, "/", null, !empty($_SERVER['HTTPS']), true); - header("Location: " . $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']); + header("Location: " . get_uri('/')); $login_error = ""; } -- cgit v1.2.3-24-g4f1b