XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct ($scheme, $userinfo, $host, $port, $path, $query, $fragment) | |
getSchemeObj ($config, $context) | |
isBenign ($config, $context) | |
isLocal ($config, $context) | |
toString () | |
validate ($config, $context) | |
Public Attributes | |
$fragment | |
$host | |
$path | |
$port | |
$query | |
$scheme | |
$userinfo | |
HTML Purifier's internal representation of a URI.
HTMLPurifier_URI::__construct | ( | $scheme, | |
$userinfo, | |||
$host, | |||
$port, | |||
$path, | |||
$query, | |||
$fragment | |||
) |
HTMLPurifier_URI::getSchemeObj | ( | $config, | |
$context | |||
) |
Retrieves a scheme object corresponding to the URI's scheme/default
$config | Instance of HTMLPurifier_Config |
$context | Instance of HTMLPurifier_Context |
Definition at line 35 of file URI.php.
References $config, $registry, and HTMLPurifier_URISchemeRegistry\instance().
Referenced by isBenign().
HTMLPurifier_URI::isBenign | ( | $config, | |
$context | |||
) |
Returns true if this URL should be considered a 'benign' URL, that is:
- It is a local URL (isLocal), and - It has a equal or better level of security
Definition at line 225 of file URI.php.
References $config, getSchemeObj(), and isLocal().
HTMLPurifier_URI::isLocal | ( | $config, | |
$context | |||
) |
Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration.
Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want.
Definition at line 211 of file URI.php.
References $config.
Referenced by isBenign().
HTMLPurifier_URI::toString | ( | ) |
HTMLPurifier_URI::validate | ( | $config, | |
$context | |||
) |
Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.
$config | Instance of HTMLPurifier_Config |
$context | Instance of HTMLPurifier_Context |
Definition at line 63 of file URI.php.
References $config.
HTMLPurifier_URI::$fragment |
Definition at line 14 of file URI.php.
Referenced by __construct(), and toString().
HTMLPurifier_URI::$host |
Definition at line 14 of file URI.php.
Referenced by __construct(), and toString().
HTMLPurifier_URI::$path |
Definition at line 14 of file URI.php.
Referenced by __construct(), and toString().
HTMLPurifier_URI::$port |
Definition at line 14 of file URI.php.
Referenced by __construct(), and toString().
HTMLPurifier_URI::$query |
Definition at line 14 of file URI.php.
Referenced by __construct(), and toString().
HTMLPurifier_URI::$scheme |
Definition at line 14 of file URI.php.
Referenced by __construct().
HTMLPurifier_URI::$userinfo |
Definition at line 14 of file URI.php.
Referenced by __construct().