git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
page: api attribute indicate index requests
[minimedit.git]
/
login
/
pass
/
index.php
diff --git
a/login/pass/index.php
b/login/pass/index.php
index cd6518662616018bbc7cdbaec8c6d9a8f7167e96..4fb50d0f2993195f9bafc117287d4729dcae1f97 100644
(file)
--- a/
login/pass/index.php
+++ b/
login/pass/index.php
@@
-14,10
+14,8
@@
if (isset($_GET['token'])) {
}
}
elseif (!$User->login) {
- http_response_code(303);
$target = urlencode($_SERVER['REQUEST_URI']);
- header("Location: /login?goto=$target");
- exit;
+ abort("/login?goto=$target", 303);
}
if ($_POST) {