fix parameter macros in event responses

This commit is contained in:
alejandro-campos 2020-08-14 14:48:34 +02:00
parent 8f96ca0805
commit 0917a631ee
2 changed files with 4 additions and 3 deletions

View File

@ -1093,7 +1093,8 @@ if ($dialogue_event_response) {
}
} else {
echo "<div style='text-align:left'>";
echo $prompt.sprintf(__('Executing command: %s', $command));
echo $prompt."Executing command: $command";
echo '</div><br>';
echo "<div id='response_loading_command' style='display:none'>".html_print_image('images/spinner.gif', true).'</div>';

View File

@ -135,7 +135,7 @@ function show_response_dialog(response_id, response) {
params.push("dialogue_event_response=1");
params.push("massive=0");
params.push("event_id=" + response["event_id"]);
params.push("target=" + response["target"]);
params.push("target=" + encodeURIComponent(response["target"]));
params.push("response_id=" + response_id);
params.push("server_id=" + response["server_id"]);
@ -397,7 +397,7 @@ function perform_response(response, response_id) {
var params = [];
params.push("page=include/ajax/events");
params.push("perform_event_response=1");
params.push("target=" + response["target"]);
params.push("target=" + encodeURIComponent(response["target"]));
params.push("response_id=" + response_id);
params.push("event_id=" + response["event_id"]);
params.push("server_id=" + response["server_id"]);