Merge pull request #6195 from Icinga/fix/api-console-crash

Fix crash in remote api console
This commit is contained in:
Michael Friedrich 2018-04-05 15:34:47 +02:00 committed by GitHub
commit 3a8017fd99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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")