extends |
HTMLPurifier_URIScheme |
---|
Validates file as defined by RFC 1630 and RFC 1738.
Methods | ||||
---|---|---|---|---|
public
|
doValidate(HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
Validates the components of a URI for a specific scheme.
Validates the components of a URI for a specific scheme. Parameters
Returnssuccess or failure Implements |
# |
Methods inherited from HTMLPurifier_URIScheme |
---|
validate() |
Properties | |||
---|---|---|---|
public
|
|
$browsable = false
Generally file:// URLs are not accessible from most
machines, so placing them as an img src is incorrect.
Generally file:// URLs are not accessible from most machines, so placing them as an img src is incorrect. |
# |
public
|
|
$may_omit_host = true
Basically the *only* URI scheme for which this is true, since
accessing files on the local machine is very common. In…
Basically the only URI scheme for which this is true, since accessing files on the local machine is very common. In fact, browsers on some operating systems don't understand the authority, though I hear it is used on Windows to refer to network shares. |
# |
Properties inherited from HTMLPurifier_URIScheme |
---|
$default_port, $secure, $hierarchical, |