diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-09 09:05:05 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-09 09:05:05 +0200 |
commit | 5c64ae1a0ea55c9d38d11659cf5a48761e44571f (patch) | |
tree | 8194e11c70e3fb8e6daad4d18b123bdf97e36e84 /web/html/pkgbase.php | |
parent | 9b19f7595e45431a7984b50369eccd1a54ae4636 (diff) | |
download | aur-5c64ae1a0ea55c9d38d11659cf5a48761e44571f.tar.gz aur-5c64ae1a0ea55c9d38d11659cf5a48761e44571f.tar.xz |
Drop suffixes from confirm parameters
Remove the _delete and _disown suffixes from HTTP POST confirmation
parameters.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r-- | web/html/pkgbase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index 7c24b792..2f8f932b 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -54,7 +54,7 @@ if (check_token()) { } elseif (current_action("do_Adopt")) { list($ret, $output) = pkgbase_adopt($ids, true, NULL); } elseif (current_action("do_Disown")) { - if (isset($_POST['confirm_Disown'])) { + if (isset($_POST['confirm'])) { $via = isset($_POST['via']) ? $_POST['via'] : NULL; list($ret, $output) = pkgbase_adopt($ids, false, $via); } else { @@ -66,7 +66,7 @@ if (check_token()) { } elseif (current_action("do_UnVote")) { list($ret, $output) = pkgbase_vote($ids, false); } elseif (current_action("do_Delete")) { - if (isset($_POST['confirm_Delete'])) { + if (isset($_POST['confirm'])) { $via = isset($_POST['via']) ? $_POST['via'] : NULL; if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) { list($ret, $output) = pkgbase_delete($ids, NULL, $via); |