mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Merge pull request #4988 from Jimmi08/patch-5
deprecated static::method() calls for PHP 8.2
This commit is contained in:
commit
f23297f443
@ -4642,23 +4642,23 @@ class e107
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Block common bad agents / queries / php issues.
|
// Block common bad agents / queries / php issues.
|
||||||
array_walk($_SERVER, array('self', 'filter_request'), '_SERVER');
|
array_walk($_SERVER, [self::class, "filter_request"] , '_SERVER');
|
||||||
if (isset($_GET))
|
if (isset($_GET))
|
||||||
{
|
{
|
||||||
array_walk($_GET, array('self', 'filter_request'), '_GET');
|
array_walk($_GET, [self::class, "filter_request"], '_GET');
|
||||||
}
|
}
|
||||||
if (isset($_POST))
|
if (isset($_POST))
|
||||||
{
|
{
|
||||||
array_walk($_POST, array('self', 'filter_request'), '_POST');
|
array_walk($_POST, [self::class, "filter_request"], '_POST');
|
||||||
reset($_POST); // Change of behaviour in PHP 5.3.17?
|
reset($_POST); // Change of behaviour in PHP 5.3.17?
|
||||||
}
|
}
|
||||||
if (isset($_COOKIE))
|
if (isset($_COOKIE))
|
||||||
{
|
{
|
||||||
array_walk($_COOKIE, array('self', 'filter_request'), '_COOKIE');
|
array_walk($_COOKIE, [self::class, "filter_request"], '_COOKIE');
|
||||||
}
|
}
|
||||||
if (isset($_REQUEST))
|
if (isset($_REQUEST))
|
||||||
{
|
{
|
||||||
array_walk($_REQUEST, array('self', 'filter_request'), '_REQUEST');
|
array_walk($_REQUEST, [self::class, "filter_request"], '_REQUEST');
|
||||||
}
|
}
|
||||||
|
|
||||||
// A better way to detect an AJAX request. No need for "ajax_used=1";
|
// A better way to detect an AJAX request. No need for "ajax_used=1";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user