Updated SVG handling, gracefully fix broken base64-encoded messages, also close XSS...
[squirrelmail.git] / class / mime / Language.class.php
1 <?php
2
3 /**
4 * Language.class.php
5 *
6 * This file should contain class needed to handle Language properties in
7 * mime messages. I suspect that it is RFC2231
8 *
9 * @copyright 2003-2019 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id$
12 * @package squirrelmail
13 * @subpackage mime
14 * @since 1.3.2
15 */
16
17 /**
18 * Class that can be used to handle language properties in MIME headers.
19 *
20 * @package squirrelmail
21 * @subpackage mime
22 * @since 1.3.0
23 */
24 class Language {
25 /**
26 * Constructor (PHP5 style, required in some future version of PHP)
27 * @param mixed $name
28 */
29 function __construct($name) {
30 /** @var mixed */
31 $this->name = $name;
32 /**
33 * Language properties
34 * @var array
35 */
36 $this->properties = array();
37 }
38
39 /**
40 * Constructor (PHP4 style, kept for compatibility reasons)
41 * @param string $name
42 */
43 function Language($name) {
44 self::__construct($name);
45 }
46 }