From: Michael Friedrich Date: Mon, 28 Sep 2015 17:14:38 +0000 (+0200) Subject: Fix wrong query type in modify object api request X-Git-Tag: v2.4.0~263 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76baeadb5bd348c5ed9181acacb008f891163a08;p=icinga2 Fix wrong query type in modify object api request refs #10212 --- diff --git a/lib/remote/modifyobjecthandler.cpp b/lib/remote/modifyobjecthandler.cpp index 2c2ed5a8f..300f451e0 100644 --- a/lib/remote/modifyobjecthandler.cpp +++ b/lib/remote/modifyobjecthandler.cpp @@ -38,7 +38,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r if (request.RequestMethod != "POST") return false; - Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[1]); + Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[2]); if (!type) { HttpUtility::SendJsonError(response, 400, "Invalid type specified.");