diff --git a/public/delete.php b/public/delete.php index 0bc6c194..e13eb026 100644 --- a/public/delete.php +++ b/public/delete.php @@ -19,14 +19,15 @@ require_once('common.php'); -if (safeget('token') != $_SESSION['PFA_token']) { + +if (safepost('token') != $_SESSION['PFA_token']) { die('Invalid token!'); } $username = authentication_get_username(); # enforce login -$id = safeget('delete'); -$table = safeget('table'); +$id = safepost('delete'); +$table = safepost('table'); $handlerclass = ucfirst($table) . 'Handler'; diff --git a/templates/bootstrap/list-virtual_mailbox.tpl b/templates/bootstrap/list-virtual_mailbox.tpl index 94b7cb8e..353fa6e6 100644 --- a/templates/bootstrap/list-virtual_mailbox.tpl +++ b/templates/bootstrap/list-virtual_mailbox.tpl @@ -98,8 +98,16 @@ {$PALANG.alias} {/if} {$PALANG.edit} - {$PALANG.del} + +
+ + + + +
+ {/foreach}