From 1f9c969d4504d0cc8f5ce836189f7d2d57cc39d6 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 25 Sep 2003 23:43:25 +0000 Subject: [PATCH] better fix for bug #812690 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5775 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver_SendMail.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/class/deliver/Deliver_SendMail.class.php b/class/deliver/Deliver_SendMail.class.php index 2f62a97d..d5c6fdbc 100644 --- a/class/deliver/Deliver_SendMail.class.php +++ b/class/deliver/Deliver_SendMail.class.php @@ -24,6 +24,7 @@ class Deliver_SendMail extends Deliver { $rfc822_header = $message->rfc822_header; $from = $rfc822_header->from[0]; $envelopefrom = trim($from->mailbox.'@'.$from->host); + $envelopefrom = str_replace(array("\0","\n"),array('',''),$envelopefrom); if (strstr($sendmail_path, "qmail-inject")) { $stream = popen (escapeshellcmd("$sendmail_path -i -f$envelopefrom"), "w"); } else { -- 2.25.1