diff --git a/src/bb-library/Box/Request.php b/src/bb-library/Box/Request.php index 273fca704..8c2f1135e 100644 --- a/src/bb-library/Box/Request.php +++ b/src/bb-library/Box/Request.php @@ -258,9 +258,9 @@ class Box_Request implements \Box\InjectionAwareInterface $address = null; if ($trustForwardedHeader) { // Check to see if the CF-Connecting-IP (Cloudflare) header exists. - if (!empty($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"); + $address = $this->getServer('HTTP_CF_CONNECTING_IP'); } else { $address = $this->getServer('HTTP_X_FORWARDED_FOR'); }