From 78e294e98e578da9ae047a09620123895333762e Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 28 Mar 2023 10:02:49 +0200 Subject: [PATCH] Check if $rImapLiteralStream is open resource and not closed --- .../v/0.0.0/app/libraries/MailSo/Imap/Traits/ResponseParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Traits/ResponseParser.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Traits/ResponseParser.php index f9a6c5999..3bcf37bd6 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Traits/ResponseParser.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Traits/ResponseParser.php @@ -389,7 +389,7 @@ trait ResponseParser $this->writeLogException($oException, \LOG_NOTICE, false); } - if ($rImapLiteralStream) { + if (\is_resource($rImapLiteralStream)) { $iNotReadLiteralLen = 0; $bFeof = \feof($rImapLiteralStream);