Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | filter (string $value) |
static | isValid ($value) |
static | assertValid ($value) |
static | assertValidName ($name) |
Fonctions membres privées | |
__construct () | |
Provide security tools around HTTP headers to prevent common injection vectors.
Code is largely lifted from the Laminas implementation in Laminas, released with the copyright and license below.
|
private |
Private constructor; non-instantiable.
|
static |
Assert a header value is valid.
mixed | $value | Value to be tested. This method asserts it is a string or number. |
Exception |
Références $value.
Référencé par Laminas\Diactoros\filterHeaderValue().
|
static |
Assert whether or not a header name is valid.
mixed | $name |
Exception |
Références $name.
Référencé par Laminas\Diactoros\assertHeader().
|
static |
Filter a header value
Ensures CRLF header injection vectors are filtered.
Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; header continuations MUST consist of a single CRLF sequence followed by a space or horizontal tab.
This method filters any values not allowed from the string, and is lossy.
|
static |
Validate a header value.
Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; header continuations MUST consist of a single CRLF sequence followed by a space or horizontal tab.
string | int | float | $value |
Références $value.