ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
{
17
public
$browsable
=
false
;
18
22
public
$may_omit_host
=
true
;
23
30
public
function
doValidate
(&$uri, $config, $context)
31
{
32
$uri->userinfo = null;
33
$uri->host = null;
34
$uri->port = null;
35
// we need to validate path against RFC 2368's addr-spec
36
return
true
;
37
}
38
}
39
40
// 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:30
HTMLPurifier_URIScheme_mailto\$may_omit_host
$may_omit_host
bool
Definition:
mailto.php:22
HTMLPurifier_URIScheme_mailto\$browsable
$browsable
bool
Definition:
mailto.php:17
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 Mar 31 2025 19:00:46 for ILIAS by
1.8.13 (using
Doxyfile
)