]> source.dussan.org Git - rspamd.git/commitdiff
Fix path field in url:to_table method.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 15:54:04 +0000 (16:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 10:42:09 +0000 (11:42 +0100)
src/lua/lua_url.c

index 41bcf37bcacfeee8f998765749f25cff721bdc47..3e74ceadc304483bde7bdf86c714f474bd49eae6 100644 (file)
@@ -363,7 +363,7 @@ lua_url_to_table (lua_State *L)
                        lua_settable (L, -3);
                }
 
-               if (u->hostlen > 0) {
+               if (u->datalen > 0) {
                        lua_pushstring (L, "path");
                        lua_pushlstring (L, u->data, u->datalen);
                        lua_settable (L, -3);