Skip to content
Snippets Groups Projects
Commit 4d2b03aa authored by Boris's avatar Boris
Browse files

Fix by @poka

parent 8cf493f8
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ function getUserIpAddress ()
} else if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
return array_pop(explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']));
$a = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
return array_pop($a);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment