NukeViet\Core\Request::security_post PHP Méthode

security_post() public méthode

Request::security_post()
public security_post ( mixed $value )
$value mixed
    public function security_post($value)
    {
        if (is_array($value)) {
            $keys = array_keys($value);
            foreach ($keys as $key) {
                $value[$key] = $this->security_post($value[$key]);
            }
        } else {
            // Fix block tag
            $value = str_replace(array('[', ']'), array('[', ']'), $value);
            if (preg_match_all('/<!\\[cdata\\[(.*?)\\]\\]>/is', $value, $matches)) {
                $value = str_replace($matches[0], $matches[1], $value);
            }
            $value = $this->filterTags($value);
        }
        return $value;
    }