[aur-dev] [PATCH 5/6] Redirect to the home page after successful login

Lukas Fleischer archlinux at cryptocrack.de
Sun Jul 15 17:23:54 EDT 2012


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 at cryptocrack.de>
---
 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



More information about the aur-dev mailing list