Module: check_mk
Branch: master
Commit: 51243d0612e0bb036ed31b34105e2fd1f136a8d5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=51243d0612e0bb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 16 12:10:55 2011 +0100
FIX: quote # in PNP links
---
ChangeLog | 1 +
web/htdocs/htmllib.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d30bb09..cf6d929 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -105,6 +105,7 @@
* FIX: fix row highlight in status GUI on IE 7/8
* FIX: fix row highlight after status page reload
* FIX: single dataset layout honors column header settings
+ * FIX: quote '#' in PNP links (when # is contained in services)
Checks & Agents:
* FIX: lnx_if: assume interfaces as up if ethtool is missing or
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 6535038..9c0d0ca 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -116,7 +116,7 @@ def urlencode(value):
for c in value:
if c == " ":
c = "+"
- elif ord(c) <= 32 or ord(c) > 127 or c in [ '+', '"',
"'", "=", "&", ":", "%" ]:
+ elif ord(c) <= 32 or ord(c) > 127 or c in [ '#', '+',
'"', "'", "=", "&", ":",
"%" ]:
c = "%%%02x" % ord(c)
ret += c
return ret