diff --git a/Helper/Environment.php b/Helper/Environment.php index 10b559ae..e0ba70f9 100644 --- a/Helper/Environment.php +++ b/Helper/Environment.php @@ -74,7 +74,9 @@ public function getEncoding() public function getRemoteIp() { $blProxyMode = (bool)$this->getConfigParam('proxy_mode', 'processing', 'payone_misc'); - return $this->request->getClientIp($blProxyMode); + $sClientIp = $this->request->getClientIp($blProxyMode); // may return a comma separated ip list like ", , " + $aSplitIp = explode(",", $sClientIp); // split by comma + return trim(current($aSplitIp)); // return first array element } /**