From 74b4c344d6c55f009d206bc910f829191f25c913 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 15 Feb 2016 14:22:36 +0100 Subject: [PATCH] Shorten check for empty auth header refs #11151 --- library/Icinga/Authentication/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Authentication/Auth.php b/library/Icinga/Authentication/Auth.php index 2a9b18627..f8fac1ac0 100644 --- a/library/Icinga/Authentication/Auth.php +++ b/library/Icinga/Authentication/Auth.php @@ -282,7 +282,7 @@ class Auth if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) { return false; } - if (($header = $request->getHeader('Authorization')) === false || empty($header)) { + if (empty($header = $request->getHeader('Authorization'))) { $this->challengeHttp(); } list($scheme) = explode(' ', $header, 2);