From 35bbb22c56b7f6e732ea671fa7a5cf8b5002ca85 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Wed, 24 May 2017 16:52:30 +0300 Subject: [PATCH] Fix a typo --- src/mibew/libs/chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/libs/chat.php b/src/mibew/libs/chat.php index ab480919..781c509c 100644 --- a/src/mibew/libs/chat.php +++ b/src/mibew/libs/chat.php @@ -580,7 +580,7 @@ function get_remote_host() $has_proxy = isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != $_SERVER['REMOTE_ADDR']; if ($has_proxy) { - $ips = explode(' ', $_SERVER['HTTP_X_FORWARDED_FOR'], 2); + $ips = explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR'], 2); $ext_addr = (count($ips) > 1) ? $ips[0] . ' (' . $_SERVER['HTTP_X_FORWARDED_FOR'] . ')' : $ips[0];