Fixed CRLF handling in the gui

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2023-06-04 18:24:18 +02:00
parent 54eddcad04
commit 0dda09c23c
4 changed files with 29 additions and 39 deletions

View File

@ -8,6 +8,9 @@ class ModelMailMail extends Model {
require_once 'Zend/Mail/Protocol/Smtp.php';
require_once 'Zend/Mail/Protocol/Smtp/Auth/Login.php';
// Workaround for the zend framework
$msg = str_replace("\r", "", $msg);
$ok = 0;
if($to == "" || strlen($msg) < 30){ return $ok; }