]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect URL check in the InfoHandler class
authorGunnar Beutner <gunnar@beutner.name>
Wed, 28 Oct 2015 06:21:18 +0000 (07:21 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 28 Oct 2015 06:46:04 +0000 (07:46 +0100)
refs #9105

lib/remote/infohandler.cpp

index 774a4e85eb21e3979fb85d1fd2168626c0a689d9..6951899b2cabec5ea93c705db8f3fb5791aab4b0 100644 (file)
@@ -38,7 +38,7 @@ bool InfoHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
                return true;
        }
 
-       if (request.RequestUrl->GetPath()[0] != "v1")
+       if (request.RequestUrl->GetPath()[0] != "v1" || request.RequestUrl->GetPath().size() != 1)
                return false;
 
        response.SetStatus(200, "OK");