barbushin / php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)
MIT License
1.66k stars 457 forks source link

Fix slash in attachment file name issue #676

Open gitstashgithub opened 2 years ago

gitstashgithub commented 2 years ago

Some systems allow slash(/) in attachment file name, and it causes issue in IncomingMailAttachment::saveToDisk() function. The \file_put_contents() function cannot handle it and throws error Failed to open stream: No such file or directory