Module: check_mk
Branch: master
Commit: 4cce7da5bf8057a1b43128e9ece4ada1871e30b3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4cce7da5bf8057…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 1 10:34:22 2012 +0200
Fixed wrong variable
---
web/htdocs/forms.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index 26b3f5d..fc5d1b2 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -100,7 +100,7 @@ def edit_dictionary(entries, value, focus=None, hover_help=True,
validate=None,
def strip_bad_chars(x):
s = "".join([c for c in x if c > ' ' and c < 'z'])
- if type(s) == unicode:
+ if type(x) == unicode:
return s.translate({
ord(u"'"): None,
ord(u"&"): None,