From 8d166b94ac234f8a43478b097006148c456bbf61 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 8 Jul 2017 17:56:07 +0200 Subject: [PATCH] gui: remove unnecessary condition in mail sending Signed-off-by: Janos SUTO --- webui/model/mail/mail.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webui/model/mail/mail.php b/webui/model/mail/mail.php index ef69f3cf..6bd564cc 100644 --- a/webui/model/mail/mail.php +++ b/webui/model/mail/mail.php @@ -36,9 +36,7 @@ class ModelMailMail extends Model { fputs($r, $msg); - if(!preg_match("/\r\n\.\r\n$/", $msg)){ - fputs($r, "\r\n.\r\n"); - } + fputs($r, "\r\n.\r\n"); $l = fgets($r, 4096);