mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move package deletion to a separate page
Package actions now have a separate box on the package details page. Make a package deletion link in that box. Link leads to a new page (pkgdel.php) that can be used to confirm package deletion. A separate page with confirmation is used to avoid CSRFs. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
d56a88897b
commit
00cffd7ddb
3 changed files with 50 additions and 0 deletions
|
@ -43,6 +43,9 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
case "unflag":
|
||||
$_POST['do_UnFlag'] = __('UnFlag');
|
||||
break;
|
||||
case "delete":
|
||||
include('pkgdel.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($_COOKIE['AURSID'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue