From: stekkel Date: Mon, 19 Aug 2002 09:57:03 +0000 (+0000) Subject: extra function for getting the disposition properties X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=924b0caccf7a39b4e79850f608a122e867708631 extra function for getting the disposition properties git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3358 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime.class.php b/class/mime.class.php index fcf5d4e1..b4fa18e6 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -848,6 +848,7 @@ class message /* multipart properties */ $i++; $res = $this->parseProperties($read,$i); + $arg_a[] = $res[0]; $i = $res[1]; $arg_no++; @@ -1669,6 +1670,17 @@ class disposition $this->name = $name; $this->properties = array(); } + + function getProperty($par) + { + $value = strtolower($par); + if (isset($this->properties[$par])) + { + return $this->properties[$par]; + } + return ''; + } + } class language