summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-25 00:07:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-25 00:07:49 +0100
commitfd74eaf0dbf946902dac25357a3218e67afda6b7 (patch)
tree7af7225c56f989236f56e412045e55fcd13ce891 /src/lua
parent1ccdd82ab8e63ad41b1e77486d2f95ac31d162d9 (diff)
downloadrspamd-fd74eaf0dbf946902dac25357a3218e67afda6b7.tar.gz
rspamd-fd74eaf0dbf946902dac25357a3218e67afda6b7.zip
[Fix] Fix folding for arc headers when milter interface is used
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index ec825c30f..6f9ded3cc 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -1138,11 +1138,11 @@ lua_util_fold_header (lua_State *L)
if (lua_isstring (L, 3)) {
how = lua_tostring (L, 3);
- if (g_ascii_strcasecmp (how, "cr") == 0) {
+ if (strcmp (how, "cr") == 0) {
folded = rspamd_header_value_fold (name, value, 0,
RSPAMD_TASK_NEWLINES_CR);
}
- else if (g_ascii_strcasecmp (how, "lf") == 0) {
+ else if (strcmp (how, "lf") == 0) {
folded = rspamd_header_value_fold (name, value, 0,
RSPAMD_TASK_NEWLINES_LF);
}