Fix logging in from package page

Patch by: BaSh <bash.lnx@gmail.com>

Adds query string to url when logging in

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
Callan Barrett 2008-06-07 17:32:32 +08:00
parent cc1f323d32
commit 435e2c6c1a

View file

@ -646,7 +646,7 @@ function try_login() {
setcookie("AURSID", $new_sid, 0, "/"); setcookie("AURSID", $new_sid, 0, "/");
# header("Location: /index.php"); # header("Location: /index.php");
header("Location: " . $_SERVER['PHP_SELF']); header("Location: " . $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);
$login_error = ""; $login_error = "";
} }