From 664aa2b8608387a6f8318a0688f1d5628f7deccc Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 27 Nov 2007 21:53:02 +0000 Subject: [PATCH] users/edit-alias.php: - trim() goto targets to avoid wrong messages about empty goto field if first line is empty https://sourceforge.net/tracker/index.php?func=detail&aid=1839061&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@247 a1433add-5e2c-0410-b055-b7f2511e0802 --- users/edit-alias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/edit-alias.php b/users/edit-alias.php index 0c58859e..4ec96741 100644 --- a/users/edit-alias.php +++ b/users/edit-alias.php @@ -72,7 +72,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") $pEdit_alias_goto = $PALANG['pEdit_alias_goto']; if (isset ($_POST['fVacation'])) $fVacation = $_POST['fVacation']; - if (isset ($_POST['fGoto'])) $fGoto = escape_string ($_POST['fGoto']); + if (isset ($_POST['fGoto'])) $fGoto = escape_string (trim($_POST['fGoto'])); if (isset ($_POST['fForward_and_store'])) $fForward_and_store = escape_string ($_POST['fForward_and_store']); $goto = strtolower ($fGoto);