From: Gunnar Beutner Date: Wed, 28 Oct 2015 06:21:18 +0000 (+0100) Subject: Fix incorrect URL check in the InfoHandler class X-Git-Tag: v2.4.0~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4763dea57120965e2f9fa8ddba72f7d234fa9331;p=icinga2 Fix incorrect URL check in the InfoHandler class refs #9105 --- diff --git a/lib/remote/infohandler.cpp b/lib/remote/infohandler.cpp index 774a4e85e..6951899b2 100644 --- a/lib/remote/infohandler.cpp +++ b/lib/remote/infohandler.cpp @@ -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");