Ensure latest slash in console url

This commit is contained in:
fbsanchez 2021-08-23 12:17:03 +02:00
parent 8a7dbf653b
commit f0c68a0f54
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}