Skip to content

Commit f0da3a6

Browse files
Fixed Notice:
PHP Notice: Undefined index: IP_ADDRESS in /opt/crm/vendor/yetiforce/csrf-magic/src/Csrf.php on line 261
1 parent aaae496 commit f0da3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Csrf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public static function getTokens()
258258
// the cookies "stick"
259259
$secret = static::getSecret();
260260
if (!$hasCookies && $secret) {
261-
$ip = ';ip:' . static::hash($_SERVER['IP_ADDRESS']);
261+
$ip = ';ip:' . static::hash($_SERVER['REMOTE_ADDR']);
262262
} else {
263263
$ip = '';
264264
}

0 commit comments

Comments
 (0)