Просмотр исходного кода

/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
dpeca 8 лет назад
Родитель
Сommit
a30f510336
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      web/edit/mail/index.php

+ 1 - 0
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);
     }
 }