Skip to content
Permalink
Browse files

Fixing broken autoreply output

  • Loading branch information...
dpeca committed Oct 3, 2019
1 parent d0ca10a commit f0782d1f826e30f00ca888008c8225b13d4b8734
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/edit/mail/index.php
@@ -72,13 +72,14 @@
$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);
}
}

0 comments on commit f0782d1

Please sign in to comment.
You can’t perform that action at this time.