PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / library / HTMLPurifier / URIScheme / mailto.php
blobc3a6b602a7537d8c08576abc4d6d6c9032674276
1 <?php
3 // VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the
4 // email is valid, but be careful!
6 /**
7 * Validates mailto (for E-mail) according to RFC 2368
8 * @todo Validate the email address
9 * @todo Filter allowed query parameters
12 class HTMLPurifier_URIScheme_mailto extends HTMLPurifier_URIScheme
14 /**
15 * @type bool
17 public $browsable = false;
19 /**
20 * @type bool
22 public $may_omit_host = true;
24 /**
25 * @param HTMLPurifier_URI $uri
26 * @param HTMLPurifier_Config $config
27 * @param HTMLPurifier_Context $context
28 * @return bool
30 public function doValidate(&$uri, $config, $context)
32 $uri->userinfo = null;
33 $uri->host = null;
34 $uri->port = null;
35 // we need to validate path against RFC 2368's addr-spec
36 return true;
40 // vim: et sw=4 sts=4