]> source.dussan.org Git - rspamd.git/commitdiff
Reverse list of exceptions.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 May 2015 09:23:26 +0000 (10:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 May 2015 09:23:26 +0000 (10:23 +0100)
src/lua/lua_util.c

index f1c84820135cf307c6678e5d79537e5c782cf120..7d7a31c592c1db0ec166638b511fe899de0ea9e3 100644 (file)
@@ -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) {