From dd8e43ca204876ca886d2f15d7e9d7afcb5b7625 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 30 Jul 2002 16:04:01 +0000 Subject: [PATCH] for safety covert disposition to lowercase before we check git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3188 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/class/mime.class.php b/class/mime.class.php index 84e234f7..c808c5aa 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -769,14 +769,15 @@ class message { $this->type1 == 'message') && isset($this->entity_id) ) { if (count($this->entities) == 0) { - if ($this->header->disposition->name != 'attachment') { + if (strtolower($this->header->disposition->name) != 'attachment') { + echo $this->header->disposition->name; $entity[] = $this->entity_id; } } } $i = 0; while ( isset($this->entities[$i]) && !$found && - ($this->entities[$i]->header->disposition->name + (strtolower($this->entities[$i]->header->disposition->name) != 'attachment') && ($this->entities[$i]->type0 != 'message' && $this->entities[$i]->type1 != 'rfc822' ) -- 2.25.1