Post.php in Anti Spam by CleanTalk 8.4
File
src/lib/Cleantalk/Common/Variables/Post.php
View source
<?php
namespace Cleantalk\Common\Variables;
class Post extends SuperGlobalVariables {
static $instance;
protected function get_variable($name) {
if (isset(static::$instance->variables[$name])) {
return static::$instance->variables[$name];
}
if (function_exists('filter_input')) {
$value = filter_input(INPUT_POST, $name);
}
if (empty($value)) {
$value = isset($_POST[$name]) ? $_POST[$name] : '';
}
static::getInstance()
->remember_variable($name, $value);
return $value;
}
}
Classes
Name |
Description |
Post |
Class Post
Safety handler for $_POST |