summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-21 10:23:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-21 10:23:26 +0100
commit495898bcb6e2dbf7cc27762124d6340eb65fc238 (patch)
tree189a18f5a25b487a2cc416da634fd02d1f767a72 /src/lua
parent3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1 (diff)
downloadrspamd-495898bcb6e2dbf7cc27762124d6340eb65fc238.tar.gz
rspamd-495898bcb6e2dbf7cc27762124d6340eb65fc238.zip
Reverse list of exceptions.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index f1c848201..7d7a31c59 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -319,6 +319,10 @@ lua_util_tokenize_text (lua_State *L)
compat = lua_toboolean (L, 3);
}
+ if (exceptions) {
+ exceptions = g_list_reverse (exceptions);
+ }
+
res = rspamd_tokenize_text ((gchar *)in, len, TRUE, 0, exceptions, compat);
if (res == NULL) {