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