Fix improper handling of IE conditional comments.
[htmlpurifier.git] / library / HTMLPurifier / URIScheme / mailto.php
blobc1e2cd5aae16eb3a37619b139c19246539c602c4
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 public $browsable = false;
16 public function validate(&$uri, $config, $context) {
17 parent::validate($uri, $config, $context);
18 $uri->userinfo = null;
19 $uri->host = null;
20 $uri->port = null;
21 // we need to validate path against RFC 2368's addr-spec
22 return true;
27 // vim: et sw=4 sts=4