mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use POST-Redirect-GET for most package actions
Avoid showing a POST data resubmission dialog and simply redirect to the package page if a package action completed successfully. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
23867a211c
commit
bf019a5b6c
1 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,12 @@ if (check_token()) {
|
||||||
} elseif (current_action("do_ChangeCategory")) {
|
} elseif (current_action("do_ChangeCategory")) {
|
||||||
list($ret, $output) = pkg_change_category($pkgid, $atype);
|
list($ret, $output) = pkg_change_category($pkgid, $atype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($ret) {
|
||||||
|
/* Redirect back to package page on success. */
|
||||||
|
header('Location: ' . get_pkg_uri($pkgname));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get package details after package actions have been attempted, FS#34508
|
# Get package details after package actions have been attempted, FS#34508
|
||||||
|
|
Loading…
Add table
Reference in a new issue