]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9072: [mod_syslog] Allow logging of messages with tab character
authorArtem Karukov <akarukov@intermedia.net>
Thu, 14 Apr 2016 14:43:31 +0000 (07:43 -0700)
committerArtem Karukov <akarukov@intermedia.net>
Thu, 14 Apr 2016 14:43:31 +0000 (07:43 -0700)
mod_syslog silently drop messages containing tabs character 0x09 and thus does not log (f.e.) exceptions from lua code.

src/mod/loggers/mod_syslog/mod_syslog.c

index d0fe2dea1d16ef0bba3ed05f6132b23306c4cb1d..08d2c0af48647d10b6e780c4915333f150beccc2 100644 (file)
@@ -120,7 +120,7 @@ static int find_unprintable(const char *s)
        const char *p;
 
        for(p = s; p && *p; p++) {
-               if (*p < 10 || *p == 27) {
+               if (*p < 9 || *p == 27) {
                        return 1;
                }
        }