[icinga-checkins] icinga.org: icingaweb2/master: Fix parse error in Auth.php

git at icinga.org git at icinga.org
Mon Feb 15 14:51:00 CET 2016


Module: icingaweb2
Branch: master
Commit: c78a7912e7755f12f2a47881a05fc6c45f083076
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=c78a7912e7755f12f2a47881a05fc6c45f083076

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Mon Feb 15 14:50:33 2016 +0100

Fix parse error in Auth.php

---

 library/Icinga/Authentication/Auth.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Icinga/Authentication/Auth.php b/library/Icinga/Authentication/Auth.php
index f8fac1a..6a8e32a 100644
--- a/library/Icinga/Authentication/Auth.php
+++ b/library/Icinga/Authentication/Auth.php
@@ -282,7 +282,8 @@ class Auth
         if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
             return false;
         }
-        if (empty($header = $request->getHeader('Authorization'))) {
+        $header = $request->getHeader('Authorization');
+        if (empty($header)) {
             $this->challengeHttp();
         }
         list($scheme) = explode(' ', $header, 2);



More information about the icinga-checkins mailing list