summaryrefslogtreecommitdiffstats
path: root/web/template/login_form.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-03-03 19:06:37 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-03-03 19:06:37 +0100
commit2f8b8aac7315d9b8fc8f4a635a61cd64e2e4bd3a (patch)
treed4cbd3c6a821a2218606e34301d9a898cbffbfd1 /web/template/login_form.php
parent3c1b84bc7ec119c6cf2a9ad62f0a92c62d16c6d5 (diff)
downloadaur-2f8b8aac7315d9b8fc8f4a635a61cd64e2e4bd3a.tar.gz
aur-2f8b8aac7315d9b8fc8f4a635a61cd64e2e4bd3a.tar.xz
Redirect to REQUEST_URI after logging in.
This closes FS#13017 Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template/login_form.php')
-rw-r--r--web/template/login_form.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/template/login_form.php b/web/template/login_form.php
index 6ada88bf..d0df370d 100644
--- a/web/template/login_form.php
+++ b/web/template/login_form.php
@@ -9,9 +9,10 @@ if (isset($_COOKIE["AURSID"])) {
else {
if ($login_error) {
print "<span class='error'>" . $login_error . "</span><br />\n";
- }
+ }
+ '?' . implode('&amp', $_GET);
?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
+<form method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>">
<div>
<?php print __('Username') . ':'; ?>
<input type="text" name="user" size="30" maxlength="<?php print USERNAME_MAX_LEN; ?>" value="<?php