mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 14:02:54 +09:00
Another minor QA to csrf-magic
This commit is contained in:
1 parent
edbca667c5
commit
acbf17b2fb
1 file changed
+1
-1
Vendored
+1
-1
@@ -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] . ')');
|
||||
|
||||
Reference in new issue
Block a user