From 4763dea57120965e2f9fa8ddba72f7d234fa9331 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 28 Oct 2015 07:21:18 +0100 Subject: [PATCH] Fix incorrect URL check in the InfoHandler class refs #9105 --- lib/remote/infohandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");