Skip to content

Commit 926e6a5

Browse files
authored
Remove "inline" as valid attachment type
1 parent 066128c commit 926e6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Part.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private function parseEncoding(){
299299
* @return bool
300300
*/
301301
public function isAttachment(){
302-
if ($this->type == IMAP::MESSAGE_TYPE_TEXT && ($this->ifdisposition == 0 || (empty($this->disposition) || !in_array(strtolower($this->disposition), ['attachment', 'inline'])) ) ) {
302+
if ($this->type == IMAP::MESSAGE_TYPE_TEXT && ($this->ifdisposition == 0 || (empty($this->disposition) || !in_array(strtolower($this->disposition), ['attachment'])) ) ) {
303303
if (($this->subtype == null || in_array((strtolower($this->subtype)), ["plain", "csv", "html"])) && $this->filename == null && $this->name == null) {
304304
return false;
305305
}

0 commit comments

Comments
 (0)