From: Vsevolod Stakhov Date: Thu, 21 May 2015 09:23:26 +0000 (+0100) Subject: Reverse list of exceptions. X-Git-Tag: 0.9.4~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=495898bcb6e2dbf7cc27762124d6340eb65fc238;p=rspamd.git Reverse list of exceptions. --- 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) {