fix for getFilename
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Aug 2002 14:21:35 +0000 (14:21 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Aug 2002 14:21:35 +0000 (14:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3467 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index e8c916100a2c5852e34141fa188ee7bd0c60b6a7..91eec967dbbb8fa9cb2e0daea32938558c27e349 100644 (file)
@@ -554,13 +554,11 @@ class message {
 
     function getFilename() {
         $filename = '';
-
-        if (is_object($this->header->disposition)) {
-            $filename = $this->header->disposition->getproperty('filename');
-            if (!$filename) {
-                $filename = $this->header->disposition->getproperty('name');
-            }
+        $filename = $this->header->getParameter('filename');   
+        if (!$filename) {
+            $filename = $this->header->getParameter('name');
         }
+
         if (!$filename) {
             $filename = 'untitled-'.$this->entity_id;
         }