]> git.wh0rd.org - tt-rss.git/blame - lib/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php
remove Archived articles from Uncategorized view
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / URIScheme / mailto.php
CommitLineData
f45a286b
AD
1<?php
2
3// VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the
4// email is valid, but be careful!
5
6/**
7 * Validates mailto (for E-mail) according to RFC 2368
8 * @todo Validate the email address
9 * @todo Filter allowed query parameters
10 */
11
12class HTMLPurifier_URIScheme_mailto extends HTMLPurifier_URIScheme {
13
14 public $browsable = false;
f4f0f80d 15 public $may_omit_host = true;
f45a286b 16
f4f0f80d 17 public function doValidate(&$uri, $config, $context) {
f45a286b
AD
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;
23 }
24
25}
26
27// vim: et sw=4 sts=4