Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / URIScheme / mailto.php
blob2292072eea73ef8d52c277aa647940c9fdbe7df7
1 <?php
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!
8 /**
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
20 ) {
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);