Class HTMLPurifier_URIScheme
Validator for the components of a URI for a specific scheme
Direct known subclasses
HTMLPurifier_URIScheme_data, HTMLPurifier_URIScheme_file, HTMLPurifier_URIScheme_ftp, HTMLPurifier_URIScheme_http, HTMLPurifier_URIScheme_mailto, HTMLPurifier_URIScheme_news, HTMLPurifier_URIScheme_nntpIndirect known subclasses
HTMLPurifier_URIScheme_https
abstract public
Bool
|
#
doValidate( $uri & $uri, $config $config, $context $context )
Validates the components of a URI for a specific scheme. |
public
Bool
|
public
|
$default_port | null |
#
Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided. |
public
boolean
|
$browsable | false |
#
Whether or not URIs of this schem are locatable by a browser http and ftp are accessible, while mailto and news are not. |
public
boolean
|
$hierarchical | false |
#
Whether or not the URI always uses <hier_part>, resolves edge cases with making relative URIs absolute |
public
boolean
|
$may_omit_host | false |
#
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. |