From f0782d1f826e30f00ca888008c8225b13d4b8734 Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 3 Oct 2019 16:15:36 +0200 Subject: [PATCH] Fixing broken autoreply output Broken in https://github.com/serghey-rodin/vesta/commit/0831a198b86a4760e83c0eaec78d84bab7098e6c#diff-f07da7937954ae08bdb2e7379655ae29 @sergio-nadal --- web/edit/mail/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/edit/mail/index.php b/web/edit/mail/index.php index e4451fc5..44f122f1 100644 --- a/web/edit/mail/index.php +++ b/web/edit/mail/index.php @@ -72,13 +72,14 @@ if ((!empty($_GET['domain'])) && (!empty($_GET['account']))) { $v_domain = escapeshellarg($_GET['domain']); $v_account = escapeshellarg($_GET['account']); + $v_account_without_quotas = $_GET['account']; // Parse autoreply if ( $v_autoreply == 'yes' ) { exec (VESTA_CMD."v-list-mail-account-autoreply ".$user." ".$v_domain." ".$v_account." json", $output, $return_var); $autoreply_str = json_decode(implode('', $output), true); unset($output); - $v_autoreply_message = $autoreply_str[$v_account]['MSG']; + $v_autoreply_message = $autoreply_str[$v_account_without_quotas]['MSG']; $v_autoreply_message=str_replace("\\n", "\n", $v_autoreply_message); } }