Module: check_mk
Branch: master
Commit: cd48c6ff4ad0df55511b3533a7727a670618a30f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cd48c6ff4ad0df…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Dec 9 12:24:44 2013 +0100
strip_bad_chars(..): fixed bug in unicode conversion with s.translate
---
web/htdocs/forms.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index d45e454..385dd1e 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -112,6 +112,7 @@ def strip_bad_chars(x):
s = "".join([c for c in x if c > ' ' and c < 'z'])
if type(x) == unicode:
+ s = unicode(s)
return s.translate({
ord(u"'"): None,
ord(u"&"): None,