Module: check_mk
Branch: master
Commit: 323b4a43baad98941c2a3ca2fa876855e38ee704
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=323b4a43baad98…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 30 09:50:49 2015 +0100
check_http: Fixed link of globe icon when "clickable" is configured in the
check
---
web/htdocs/lib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index 433be23..439f204 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -290,9 +290,9 @@ def format_plugin_output(output, row = None):
if config.escape_plugin_output:
# (?:<A HREF="), (?: target="_blank">)?
and endswith(" </A>") is a special
# handling for the HTML code produced by check_http when "clickable
URL" option is active.
- output = re.sub("(?:<A
HREF=")?http[s]?://[^\"'>\t\s\n,]+(?:
target="_blank">)?",
+ output = re.sub("(?:<A
HREF=")?(http[s]?://[^\"'>\t\s\n,]+)(?:
target="_blank">)?",
lambda p: '<a href="%s"><img
class=pluginurl align=absmiddle title="%s"
src="images/pluginurl.png"></a>' %
- (p.group(0).replace('"', ''),
p.group(0).replace('"', '')), output)
+ (p.group(1).replace('"', ''),
p.group(1).replace('"', '')), output)
if output.endswith(" </A>"):
output = output[:-11]