isValid() public static method

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.
See also: http://en.wikipedia.org/wiki/HTTP_response_splitting
public static isValid ( string $value ) : boolean
$value string
return boolean
Exemplo n.º 1
0
 /**
  * @dataProvider validateValues
  * @group ZF2015-04
  */
 public function testValidatesValuesPerRfc7230($value, $assertion)
 {
     $this->{$assertion}(HeaderSecurity::isValid($value));
 }