Fixed issue with each() use in php8.x
This commit is contained in:
parent
b1b39348b2
commit
4bef473aaf
@ -85,7 +85,8 @@ if( getenv('HTTP_X_FORWARDED_FOR') != '' )
|
||||
|
||||
$entries = explode(',', getenv('HTTP_X_FORWARDED_FOR'));
|
||||
reset($entries);
|
||||
while (list(, $entry) = each($entries))
|
||||
// while (list(, $entry) = each($entries))
|
||||
foreach($entries[1] as $entry)
|
||||
{
|
||||
$entry = trim($entry);
|
||||
if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list) )
|
||||
|
Loading…
Reference in New Issue
Block a user