diff --git a/src/frontend.template.php b/src/frontend.template.php index c145e39..b5143a0 100644 --- a/src/frontend.template.php +++ b/src/frontend.template.php @@ -182,7 +182,7 @@ $purifier = new HTMLPurifier($purifier_config); Delete + href="?action=delete_email&delete_email_id=&address=address ?>">Delete diff --git a/src/router.php b/src/router.php index 147b5c7..ac53b03 100644 --- a/src/router.php +++ b/src/router.php @@ -35,7 +35,7 @@ class Router { } elseif ($this->action === "download_email" && isset($this->get_vars['download_email_id']) && isset($this->get_vars['address'])) { return new DownloadEmailPage($this->get_vars['download_email_id'], $this->get_vars['address'], $this->config['domains']); - } elseif (isset($this->get_vars['delete_email_id']) && isset($this->get_vars['address'])) { + } elseif ($this->action === "delete_email" && isset($this->get_vars['delete_email_id']) && isset($this->get_vars['address'])) { return new DeleteEmailPage($this->get_vars['delete_email_id'], $this->get_vars['address'], $this->config['domains']); } elseif (isset($this->get_vars['random'])) {