public static function HeaderSecurity::assertValid in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-diactoros/src/HeaderSecurity.php \Zend\Diactoros\HeaderSecurity::assertValid()
Assert a header value is valid.
Parameters
string $value:
Throws
InvalidArgumentException for invalid values
File
- vendor/
zendframework/ zend-diactoros/ src/ HeaderSecurity.php, line 129
Class
- HeaderSecurity
- Provide security tools around HTTP headers to prevent common injection vectors.
Namespace
Zend\DiactorosCode
public static function assertValid($value) {
if (!self::isValid($value)) {
throw new InvalidArgumentException('Invalid header value');
}
}