Module: check_mk
Branch: master
Commit: 6b75643a0b6e16409873f9bf91a016184572615c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b75643a0b6e16…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 7 15:37:14 2015 +0200
check_bi_aggr-Icon: Be more robust against tailing slashes in paths
---
web/plugins/icons/builtin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 3cb15ac..22635e3 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -719,7 +719,7 @@ def paint_icon_check_bi_aggr(what, row, tags, host_custom_vars):
args = row['service_check_command']
start = args.find('-b \'') + 4
end = args.find('\' ', start)
- base_url = args[start:end]
+ base_url = args[start:end].rstrip('/')
base_url = base_url.replace('$HOSTADDRESS$',
row['host_address'])
base_url = base_url.replace('$HOSTNAME$', row['host_name'])