3 require_once 'HTMLPurifier/URIScheme.php';
5 // VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the
6 // email is valid, but be careful!
9 * Validates mailto (for E-mail) according to RFC 2368
10 * @todo Validate the email address
11 * @todo Filter allowed query parameters
14 class HTMLPurifier_URIScheme_mailto
extends HTMLPurifier_URIScheme
{
16 var $browsable = false;
18 function validateComponents(
19 $userinfo, $host, $port, $path, $query, $config, &$context
21 list($userinfo, $host, $port, $path, $query) =
22 parent
::validateComponents(
23 $userinfo, $host, $port, $path, $query, $config, $context );
24 // we need to validate path against RFC 2368's addr-spec
25 return array(null, null, null, $path, $query);