Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
postdecodefilter.php
1<?php
2
3namespace Bitrix\Main\Web;
4
8
10{
15 public function filter(array $values)
16 {
17 if(Application::getInstance()->isUtfMode())
18 {
19 return null;
20 }
21 if(empty($values['post']) || !is_array($values['post']))
22 {
23 return null;
24 }
25
26 return array(
27 'post' => Encoding::convertEncoding($values['post'], 'UTF-8', SITE_CHARSET),
28 );
29 }
30}
filter(array $values)