|
| doValidate (&$uri, $config, $context) |
|
| validate (&$uri, $config, $context) |
| Public interface for validating components of a URI.
|
|
|
| $browsable = false |
| Generally file:// URLs are not accessible from most machines, so placing them as an img src is incorrect.
|
|
| $default_port = null |
| Scheme's default port (integer).
|
|
| $hierarchical = false |
| Whether or not the URI always uses <hier_part>, resolves edge cases with making relative URIs absolute @type bool.
|
|
| $may_omit_host = true |
| Basically the only URI scheme for which this is true, since accessing files on the local machine is very common.
|
|
| $secure = false |
| Whether or not data transmitted over this scheme is encrypted.
|
|
◆ doValidate()
HTMLPurifier_URIScheme_file::doValidate |
( |
& | $uri, |
|
|
| $config, |
|
|
| $context ) |
◆ validate()
HTMLPurifier_URIScheme::validate |
( |
& | $uri, |
|
|
| $config, |
|
|
| $context ) |
|
inherited |
Public interface for validating components of a URI.
Performs a bunch of default actions. Don't overload this method.
- Parameters
-
- Return values
-
◆ $browsable
HTMLPurifier_URIScheme_file::$browsable = false |
Generally file:// URLs are not accessible from most machines, so placing them as an img src is incorrect.
@type bool
◆ $default_port
HTMLPurifier_URIScheme::$default_port = null |
|
inherited |
Scheme's default port (integer).
If an explicit port number is specified that coincides with the default port, it will be elided. @type int
◆ $may_omit_host
HTMLPurifier_URIScheme_file::$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 fact, browsers on some operating systems don't understand the authority, though I hear it is used on Windows to refer to network shares. @type bool
◆ $secure
HTMLPurifier_URIScheme::$secure = false |
|
inherited |
Whether or not data transmitted over this scheme is encrypted.
https is secure, http is not. @type bool
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/URIScheme/file.php