Skip to content

Commit

Permalink
Correct invalid csrf_log calls
Browse files Browse the repository at this point in the history
  • Loading branch information
netniV committed Feb 24, 2020
1 parent ba98eaf commit 20261ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csrf-magic.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ 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('ERROR: Invalid remote client IP Address found in header (' . $header . ').');
csrf_log(__FUNCTIOJN__,'ERROR: Invalid remote client IP Address found in header (' . $header . ').');
} else {
$client_addr = $header_ip;
csrf_log('DEBUG: Using remote client IP Address found in header (' . $header . '): ' . $client_addr . ' (' . $_SERVER[$header] . ')');
csrf_log(__FUNCTION__,'DEBUG: Using remote client IP Address found in header (' . $header . '): ' . $client_addr . ' (' . $_SERVER[$header] . ')');
break;
}
}
Expand Down

0 comments on commit 20261ab

Please sign in to comment.