From a30f510336d8f3af6745c166d43ff80c0f9e6b24 Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 7 Dec 2017 17:28:16 +0100 Subject: [PATCH] /web/edit/mail/index.php: fix for new lines in autoreply Because JSON is properly escaped now, see https://github.com/serghey-rodin/vesta/commit/a8d857f6d5e3424b73958fc7d7e35bf90ae87a15 --- web/edit/mail/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/edit/mail/index.php b/web/edit/mail/index.php index d2b37a3e3..6c673118d 100644 --- a/web/edit/mail/index.php +++ b/web/edit/mail/index.php @@ -76,6 +76,7 @@ if ((!empty($_GET['domain'])) && (!empty($_GET['account']))) { $autoreply_str = json_decode(implode('', $output), true); unset($output); $v_autoreply_message = $autoreply_str[$v_account]['MSG']; + $v_autoreply_message=str_replace("\\n", "\n", $v_autoreply_message); } }