|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/www/wp-content/plugins/security-malware-firewall/lib/CleantalkSP/Variables/ |
Upload File : |
<?php
namespace CleantalkSP\Variables;
/**
* Class Get
* Safety handler for $_GET
*
* @usage \CleantalkSP\Variables\Get::get( $name );
*
* @package \CleantalkSP\Variables
*/
class Get extends ServerVariables
{
/**
* Gets given $_GET variable and save it to memory
*
* @param string $name
*
* @return mixed|string
*/
protected function getVariable($name)
{
if ( function_exists('filter_input') ) {
$value = filter_input(INPUT_GET, $name);
}
if ( empty($value) ) {
$value = isset($_GET[$name]) ? $_GET[$name] : '';
}
return $value;
}
}