mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-22 20:53:39 +09:00
Fix minor QA issue
This commit is contained in:
1 parent
8d748b1c42
commit
460ce06ca1
1 file changed
+1
-1
+1
-1
@@ -5352,7 +5352,7 @@ function get_client_addr($client_addr = false) {
|
||||
$client_addr = false;
|
||||
foreach ($http_addr_headers as $header) {
|
||||
if (!empty($_SERVER[$header])) {
|
||||
$header_ips = explode(',', $header_ips);
|
||||
$header_ips = explode(',', $_SERVER[$header]);
|
||||
foreach ($header_ips as $header_ip) {
|
||||
if (!empty($header_ip)) {
|
||||
if (!filter_var($header_ip, FILTER_VALIDATE_IP)) {
|
||||
|
||||
Reference in new issue
Block a user