diff --git a/src/bb-library/Box/Request.php b/src/bb-library/Box/Request.php index da7292f78..273fca704 100644 --- a/src/bb-library/Box/Request.php +++ b/src/bb-library/Box/Request.php @@ -258,7 +258,7 @@ class Box_Request implements \Box\InjectionAwareInterface $address = null; if ($trustForwardedHeader) { // Check to see if the CF-Connecting-IP (Cloudflare) header exists. - if (isset($this->getServer("HTTP_CF_CONNECTING_IP"))) { + if (!empty($this->getServer("HTTP_CF_CONNECTING_IP"))) { // If it does, assume that BoxBilling is behind Cloudflare. $address = $this->getServer("HTTP_CF_CONNECTING_IP"); } else {