ILIAS
release_4-4 Revision
◀ ilDoc Overview
mailto.php
Go to the documentation of this file.
1
<?php
2
3
// VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the
4
// email is valid, but be careful!
5
12
class
HTMLPurifier_URIScheme_mailto
extends
HTMLPurifier_URIScheme
{
13
14
public
$browsable
=
false
;
15
public
$may_omit_host
=
true
;
16
17
public
function
doValidate
(&$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
;
23
}
24
25
}
26
27
// vim: et sw=4 sts=4
HTMLPurifier_URIScheme_mailto
Validates mailto (for E-mail) according to RFC 2368.
Definition:
mailto.php:12
HTMLPurifier_URIScheme_mailto\doValidate
doValidate(&$uri, $config, $context)
Definition:
mailto.php:17
HTMLPurifier_URIScheme_mailto\$may_omit_host
$may_omit_host
Definition:
mailto.php:15
HTMLPurifier_URIScheme_mailto\$browsable
$browsable
Definition:
mailto.php:14
HTMLPurifier_URIScheme
Validator for the components of a URI for a specific scheme.
Definition:
URIScheme.php:6
Services
Html
HtmlPurifier
library
HTMLPurifier
URIScheme
mailto.php
Generated on Mon Dec 21 2020 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)