[php-src] Issue #9718: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input exceeds the allowed length in
/var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 64 (or 78)
| From: | boisrobe | Date: | Tue, 11 Oct 2022 07:54:26 +0000 |
| Subject: | [php-src] Issue #9718: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input exceeds the allowed length in /var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 64 (or 78) |
||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242574@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9718
Author: boisrobe
### Description
When collector (imap or pop) collect the mail in our mailbox support we have many error :
[2022-10-11 09:37:29] glpiphplog.CRITICAL: *** Uncaught Exception
Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected in
/var/www/glpi/vendor/laminas/laminas-mail/src/Header/GenericHeader.php at line 64
Backtrace :
vendor/laminas/laminas-mail/src/Headers.php:544
Laminas\Mail\Header\GenericHeader::splitHeaderLine()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
vendor/laminas/laminas-mime/src/Decode.php:150 Laminas\Mail\Headers::fromString()
...r/laminas/laminas-mail/src/Storage/Part.php:111 Laminas\Mime\Decode::splitMessage()
...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->__construct()
...r/laminas/laminas-mail/src/Storage/Imap.php:127 Laminas\Mail\Storage\Message->__construct()
...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Imap->getMessage()
inc/mailcollector.class.php:721
Laminas\Mail\Storage\AbstractStorage->current()
front/mailcollector.form.php:88 MailCollector->collect()
I try to update glpi in 9.5.9 for the CVE, update php in php 8.0.24.
may be i missed something in my upgrade ???
I try to put an eml message which have problem but many of my email are impact. but github tell me
we don't support that filte type. so i zip it.
Thank for your support.
[[MDE GDF] Ethernet salle étage +
matériel.zip](https://github.com/php/php-src/files/9752320/MDE.GDF.Ethernet.salle.etage.%2B.materiel.zip)
### PHP Version
PHP 8.0.24
### Operating System
Debian 10