comparison vendor/zendframework/zend-diactoros/src/HeaderSecurity.php @ 2:5311817fb629

Theme updates
author Chris Cannam
date Tue, 10 Jul 2018 13:19:18 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
1:0b0e5f3b1e83 2:5311817fb629
1 <?php 1 <?php
2 /** 2 /**
3 * Zend Framework (http://framework.zend.com/) 3 * @see https://github.com/zendframework/zend-diactoros for the canonical source repository
4 * 4 * @copyright Copyright (c) 2015-2017 Zend Technologies USA Inc. (http://www.zend.com)
5 * @see http://github.com/zendframework/zend-diactoros for the canonical source repository
6 * @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License 5 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License
8 */ 6 */
9 7
10 namespace Zend\Diactoros; 8 namespace Zend\Diactoros;
11 9
12 use InvalidArgumentException; 10 use InvalidArgumentException;
11
12 use function get_class;
13 use function gettype;
14 use function in_array;
15 use function is_numeric;
16 use function is_object;
17 use function is_string;
18 use function ord;
19 use function preg_match;
20 use function sprintf;
21 use function strlen;
13 22
14 /** 23 /**
15 * Provide security tools around HTTP headers to prevent common injection vectors. 24 * Provide security tools around HTTP headers to prevent common injection vectors.
16 * 25 *
17 * Code is largely lifted from the Zend\Http\Header\HeaderValue implementation in 26 * Code is largely lifted from the Zend\Http\Header\HeaderValue implementation in