Fix crash in remote api console

This commit is contained in:
Jean Flach 2018-04-04 12:23:45 +02:00
parent d5ddc877dd
commit 69ea2f3a64
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")