From a2c909b6e91a36599dd81ec07e45cb4d6031f8c5 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 28 Feb 2008 11:58:52 +0000 Subject: [PATCH] edit-mailbox.php- if the user clicks on cancel, forward them to somewhere else, and not save stuff - see https://sourceforge.net/tracker/index.php?func=detail&aid=1888847&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@304 a1433add-5e2c-0410-b055-b7f2511e0802 --- edit-mailbox.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edit-mailbox.php b/edit-mailbox.php index 4a13041e..3138c9cb 100644 --- a/edit-mailbox.php +++ b/edit-mailbox.php @@ -85,6 +85,11 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") } } +if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['cancel'])) { + header("Location: list-virtual.php?domain=$fDomain"); + exit(0); +} + if ($_SERVER['REQUEST_METHOD'] == "POST") { if (isset ($_POST['fPassword'])) $fPassword = escape_string ($_POST['fPassword']);