Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated static::method() calls for PHP 8.2 #4988

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions e107_handlers/e107_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4642,23 +4642,23 @@ public function prepare_request($checkS = true)
{

// 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))
{
array_walk($_GET, array('self', 'filter_request'), '_GET');
array_walk($_GET, [self::class, "filter_request"], '_GET');
}
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?
}
if (isset($_COOKIE))
{
array_walk($_COOKIE, array('self', 'filter_request'), '_COOKIE');
array_walk($_COOKIE, [self::class, "filter_request"], '_COOKIE');
}
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";
Expand Down