From 495898bcb6e2dbf7cc27762124d6340eb65fc238 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 May 2015 10:23:26 +0100 Subject: [PATCH] Reverse list of exceptions. --- src/lua/lua_util.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5