1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
server.php
См. документацию.
1<?php
9namespace Bitrix\Security\Filter;
10
11use Bitrix\Main\Type\IRequestFilter;
12
19class Server
20 extends Request
21 implements IRequestFilter
22{
23
24 protected $interestingKeys = array('REQUEST_URI', 'QUERY_STRING', 'SCRIPT_URL', 'SCRIPT_URI', 'PHP_SELF');
25
34 public function filter(array $values, $isReturnChangedOnly = true)
35 {
36 $this->onFilterStarted();
37
38 foreach ($values as $key => &$val)
39 {
40 if (
41 substr($key, 0, 5) === 'HTTP_'
42 || in_array($key, $this->interestingKeys, true)
43 )
44 {
45 $val = $this->filterVar('server', $val, '$_SERVER["'.$key.'"]');
46 }
47
48 }
49 unset($val);
50
51 $this->onFilterFinished();
52
53 if (!$isReturnChangedOnly || isset($this->changedContext['server']))
54 return $values;
55 else
56 return null;
57 }
58}
filterVar($context, $value, $name)
Определения request.php:196
filter(array $values, $isReturnChangedOnly=true)
Определения server.php:34
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(empty($signedUserToken)) $key
Определения quickway.php:257
$val
Определения options.php:1793