Fix minor QA issue

This commit is contained in:
netniV committed 2020-02-10 01:04:48 +00:00
1 parent 8d748b1c42
commit 460ce06ca1
1 file changed
+1 -1
+1 -1
View File
@@ -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)) {