diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-21 14:10:01 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-21 14:10:01 +0100 |
commit | dca7232d63f3d7d69ea38f0d2ad7337c12803bf3 (patch) | |
tree | 67c80ac0327a0413c4d51ed9b6c80cff0d509130 /src | |
parent | ed57ffc4febceeb30da35a37ac0b0c386234dd3b (diff) |
m_httpd_stats Be more conservative when escaping data
Fix clang warning
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_httpd_stats.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 547d6032f..2fc7ca7de 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -55,8 +55,7 @@ class ModuleHttpStats : public Module ret += it->second; ret += ';'; } - else if (*x == 0x9 || *x == 0xA || *x == 0xD || - (*x >= 0x20 && *x <= 0xD7FF) || (*x >= 0xE000 && *x <= 0x10FFFF)) + else if (*x == 0x09 || *x == 0x0A || *x == 0x0D || ((*x >= 0x20) && (*x <= 0x7e))) { // The XML specification defines the following characters as valid inside an XML document: // Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] |