Module: check_mk
Branch: master
Commit: 3100fe7942e670f28e06e789b2b04a1a0a308c33
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3100fe7942e670…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 9 11:02:22 2014 +0200
Sidebar: footnotelink now allows javascript URLs
---
web/htdocs/sidebar.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index eea65b9..0607df6 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -69,7 +69,7 @@ def link(text, url, target="main", onclick = None):
# [1] protocol://hostname/url/link.py
# [2] /absolute/link.py
# [3] relative.py
- if not (":" in url[:10]) and url[0] != '/':
+ if not (":" in url[:10]) and not url.startswith("javascript") and
url[0] != '/':
url = defaults.url_prefix + "check_mk/" + url
onclick = onclick and (' onclick="%s"' % html.attrencode(onclick))
or ''
return '<a onfocus="if (this.blur) this.blur();"
target="%s" ' \