From 42ad44d1fea072d23f2e0067bca4ba6bc0b2a523 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 4 Sep 2023 10:57:43 +0200 Subject: Adding upstream version 1.42.2. Signed-off-by: Daniel Baumann --- web/api/web_api.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/api') diff --git a/web/api/web_api.c b/web/api/web_api.c index 96ab00390..be6d898b8 100644 --- a/web/api/web_api.c +++ b/web/api/web_api.c @@ -73,6 +73,9 @@ int web_client_api_request_vX(RRDHOST *host, struct web_client *w, char *url_pat return HTTP_RESP_BAD_REQUEST; } + if (api_command != url_path_endpoint) + freez(api_command); + short int code = web_client_check_acl_and_bearer(w, api_commands[i].acl); if(code != HTTP_RESP_OK) { if(code == HTTP_RESP_FORBIDDEN) -- cgit v1.2.3