Преглед изворни кода

for safety covert disposition to lowercase before we check

stekkel пре 23 година
родитељ
комит
1ab14b0d55
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      class/mime.class.php

+ 3 - 2
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' )