about summary refs log tree commit homepage
path: root/ext/clogger_ext/clogger.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-12-05 17:53:43 -0800
committerEric Wong <normalperson@yhbt.net>2011-12-05 17:53:43 -0800
commitba72b12030864a05fc88bc94a3b699971cc70b0a (patch)
tree3929aee60b86b286f6c6e34050bb4404aadba5d3 /ext/clogger_ext/clogger.c
parent9f6aece724a79d5a19723a781766fdb1725ddcf3 (diff)
downloadclogger-ba72b12030864a05fc88bc94a3b699971cc70b0a.tar.gz
This matches the behavior of nginx 1.0.9
Diffstat (limited to 'ext/clogger_ext/clogger.c')
-rw-r--r--ext/clogger_ext/clogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index e1fcecb..c1e3eb4 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -161,7 +161,7 @@ static void init_buffers(struct clogger *c)
 static inline int need_escape(unsigned c)
 {
         assert(c <= 0xff);
-        return !!(c == '\'' || c == '"' || c <= 0x1f);
+        return !!(c == '\'' || c == '"' || c <= 0x1f || c >= 0x7f);
 }
 
 /* we are encoding-agnostic, clients can send us all sorts of junk */