/usr/share/squirrelmail/class/mime/Disposition.class.php is in squirrelmail 2:1.4.23~svn20120406-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <?php
/**
* Disposition.class.php
*
* This file contains functions needed to handle content disposition headers
* in mime messages. See RFC 2183.
*
* @copyright 2003-2012 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: Disposition.class.php 14248 2012-01-02 00:18:17Z pdontthink $
* @package squirrelmail
* @subpackage mime
* @since 1.3.2
*/
/**
* Class that handles content disposition header
* @package squirrelmail
* @subpackage mime
* @since 1.3.0
* @todo FIXME: do we have to declare vars ($name and $properties)?
*/
class Disposition {
/**
* Constructor function
* @param string $name
*/
function Disposition($name) {
$this->name = $name;
$this->properties = array();
}
/**
* Returns value of content disposition property
* @param string $par content disposition property name
* @return string
* @since 1.3.1
*/
function getProperty($par) {
$value = strtolower($par);
if (isset($this->properties[$par])) {
return $this->properties[$par];
}
return '';
}
}
|