summaryrefslogtreecommitdiff
path: root/app/Core/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r--app/Core/Request.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php
index f553d7cd..5eda2d02 100644
--- a/app/Core/Request.php
+++ b/app/Core/Request.php
@@ -218,11 +218,8 @@ class Request
);
foreach ($keys as $key) {
-
if (isset($_SERVER[$key])) {
-
foreach (explode(',', $_SERVER[$key]) as $ip_address) {
-
$ip_address = trim($ip_address);
if ($only_public) {
@@ -231,9 +228,7 @@ class Request
if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) {
return $ip_address;
}
- }
- else {
-
+ } else {
return $ip_address;
}
}