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;
}