mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Fixing broken autoreply output
Broken in 0831a198b8 (diff-f07da7937954ae08bdb2e7379655ae29)
@sergio-nadal
This commit is contained in:
parent
d0ca10a5d3
commit
f0782d1f82
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue