mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Merge pull request #6195 from Icinga/fix/api-console-crash
Fix crash in remote api console
This commit is contained in:
commit
3a8017fd99
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user