]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/URIScheme/mailto.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / URIScheme / mailto.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3// VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the\r
4// email is valid, but be careful!\r
5\r
6/**\r
7 * Validates mailto (for E-mail) according to RFC 2368\r
8 * @todo Validate the email address\r
9 * @todo Filter allowed query parameters\r
10 */\r
11\r
12class HTMLPurifier_URIScheme_mailto extends HTMLPurifier_URIScheme\r
13{\r
14 /**\r
15 * @type bool\r
16 */\r
17 public $browsable = false;\r
18\r
19 /**\r
20 * @type bool\r
21 */\r
22 public $may_omit_host = true;\r
23\r
24 /**\r
25 * @param HTMLPurifier_URI $uri\r
26 * @param HTMLPurifier_Config $config\r
27 * @param HTMLPurifier_Context $context\r
28 * @return bool\r
29 */\r
30 public function doValidate(&$uri, $config, $context)\r
31 {\r
32 $uri->userinfo = null;\r
33 $uri->host = null;\r
34 $uri->port = null;\r
35 // we need to validate path against RFC 2368's addr-spec\r
36 return true;\r
37 }\r
38}\r
39\r
40// vim: et sw=4 sts=4\r