diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-15 11:39:03 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-15 22:48:33 +0200 |
commit | 799c1ead821469d7c75c9d7621cd9ea517e5a0f2 (patch) | |
tree | 91af1b5b4f0cbcc208c6b027dd9dca8d2cd56729 /web | |
parent | 03486c3b6feafb18f00b0e0c092a1bd4ac2f3903 (diff) | |
download | aurweb-799c1ead821469d7c75c9d7621cd9ea517e5a0f2.tar.xz |
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index fcc6a60..d58c759 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 = ""; } |