From 47a187a9aa9b09e8ee8c8e9eecf9263d587835cd Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 26 Sep 2014 13:10:21 +0200 Subject: [PATCH] Fixed the urls for the metaconsole images --- pandora_console/include/functions_ui.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 1aadf3096f..bea2ef2502 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2256,6 +2256,12 @@ function ui_get_full_url ($url = '', $no_proxy = false, $add_name_php_file = fal } } + if (substr($fullurl, -1, 1) === substr($url, 0, 1)) { + if (substr($fullurl, -1, 1) === '/') { + $url = substr($url, 1); + } + } + return $fullurl . $url; }