Another minor QA to csrf-magic

This commit is contained in:
netniV committed 2020-02-26 08:57:59 +00:00
1 parent edbca667c5
commit acbf17b2fb
1 file changed
+1 -1
+1 -1
View File
@@ -430,7 +430,7 @@ function csrf_get_client_addr() {
foreach ($header_ips as $header_ip) {
if (!empty($header_ip)) {
if (!filter_var($header_ip, FILTER_VALIDATE_IP)) {
csrf_log(__FUNCTIOJN__,'ERROR: Invalid remote client IP Address found in header (' . $header . ').');
csrf_log(__FUNCTION__,'ERROR: Invalid remote client IP Address found in header (' . $header . ').');
} else {
$client_addr = $header_ip;
csrf_log(__FUNCTION__,'DEBUG: Using remote client IP Address found in header (' . $header . '): ' . $client_addr . ' (' . $_SERVER[$header] . ')');