\HTMLPurifier_URIScheme_data

Implements data: URI for base64 encoded images supported by GD.

Summary

Methods
Properties
Constants
doValidate()
validate()
muteErrorHandler()
$default_port
$browsable
$secure
$hierarchical
$may_omit_host
$allowed_types
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$default_port

$default_port

Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided.

$browsable

$browsable

Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not.

$secure

$secure

Whether or not data transmitted over this scheme is encrypted.

https is secure, http is not.

$hierarchical

$hierarchical

Whether or not the URI always uses <hier_part>, resolves edge cases with making relative URIs absolute

$may_omit_host

$may_omit_host

Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file. As of writing, 'file' is the only scheme that browsers support his properly.

$allowed_types

$allowed_types

Methods

doValidate()

doValidate(\HTMLPurifier_URI  $uri, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : bool

Validates the components of a URI for a specific scheme.

Parameters

\HTMLPurifier_URI $uri
\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

bool —

validate()

validate(\HTMLPurifier_URI  $uri, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : bool

Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method.

Parameters

\HTMLPurifier_URI $uri

Reference to a HTMLPurifier_URI object

\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

bool —

success or failure

muteErrorHandler()

muteErrorHandler(int  $errno, string  $errstr) : mixed

Parameters

int $errno
string $errstr

Returns

mixed —