From f0c68a0f549fe319978d223a3f9c953232a2b716 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 23 Aug 2021 12:17:03 +0200 Subject: [PATCH] Ensure latest slash in console url --- pandora_server/lib/PandoraFMS/DB.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/DB.pm b/pandora_server/lib/PandoraFMS/DB.pm index a25c3e780c..1f53cb228b 100644 --- a/pandora_server/lib/PandoraFMS/DB.pm +++ b/pandora_server/lib/PandoraFMS/DB.pm @@ -235,6 +235,9 @@ sub get_console_api_url ($$) { $pa_config->{"console_api_url"} = 'http://127.0.0.1/pandora_console/' . $include_api; logger($pa_config, "Assuming default path for API url: " . $pa_config->{"console_api_url"}, 3); } else { + if ($console_api_url !~ /\/$/) { + $console_api_url .= '/'; + } $pa_config->{"console_api_url"} = $console_api_url . $include_api; } }