Use HttpUtility::GetLastParameter to get endpoint

This commit is contained in:
Mattia Codato 2020-06-30 15:51:15 +02:00
parent 8f3617d074
commit 15dac85583
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
String endpoint = "$command_endpoint$";
if (params->Contains("endpoint"))
endpoint = params->Get("endpoint");
endpoint = HttpUtility::GetLastParameter(params, "endpoint");
MacroProcessor::ResolverList resolvers;
if (params->Contains("macros")) {