fail2ban/fail2ban-utf8.patch
Orion Poplawski 83ab8cd69d Add patch from upstream to fix module imports (Bug #892365)
Add patch from upstream to UTF-8 characters in syslog (Bug #905097)
2013-02-14 14:31:50 -07:00

18 lines
605 B
Diff

commit f8983872ad4297ddb3017f4818edd08892dd2129
Author: Yaroslav Halchenko <debian@onerussian.com>
Date: Fri Feb 1 16:07:00 2013 -0500
BF: return str(host) to avoid spurious characters in the logs (Close gh-113)
thanks to opoplawski@github
diff --git a/server/failregex.py b/server/failregex.py
index 8ce9597..b194d47 100644
--- a/server/failregex.py
+++ b/server/failregex.py
@@ -130,4 +130,4 @@ class FailRegex(Regex):
s = self._matchCache.string
r = self._matchCache.re
raise RegexException("No 'host' found in '%s' using '%s'" % (s, r))
- return host
+ return str(host)