]> granicus.if.org Git - icinga2/commitdiff
Fix crash in remote api console 6195/head
authorJean Flach <jean-marcel.flach@icinga.com>
Wed, 4 Apr 2018 10:23:45 +0000 (12:23 +0200)
committerJean Flach <jean-marcel.flach@icinga.com>
Wed, 4 Apr 2018 10:23:45 +0000 (12:23 +0200)
lib/remote/consolehandler.cpp

index 79962cb50b51583f286ce50df66b811ff08901d4..5c5af049d6929403bdce0ec79d3a6cb724503023 100644 (file)
@@ -71,7 +71,7 @@ static void EnsureFrameCleanupTimer()
 
 bool ConsoleHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response, const Dictionary::Ptr& params)
 {
-       if (request.RequestUrl->GetPath().size() > 3)
+       if (request.RequestUrl->GetPath().size() != 3)
                return false;
 
        if (request.RequestMethod != "POST")