Jump to the home page instead of displaying a page that only tells you
that you're logged in.

Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/lib/acctfuncs.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 = "";
 
                        }
-- 
1.7.11.2

Reply via email to