commit 205485c: [Minor] Fix rspamd_url.all method
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Nov 25 13:28:11 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-25 12:56:37 +0000
URL: https://github.com/rspamd/rspamd/commit/205485cf1645379a7c7df5c578fad55d99d8dad5
[Minor] Fix rspamd_url.all method
---
src/lua/lua_url.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index cc76f06e8..c0cfb49b8 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -789,9 +789,7 @@ lua_url_table_inserter (struct rspamd_url *url, gsize start_offset,
lua_url = lua_newuserdata (L, sizeof (struct rspamd_lua_url));
rspamd_lua_setclass (L, "rspamd{url}", -1);
lua_url->url = url;
- lua_pushinteger (L, n + 1);
- lua_pushlstring (L, url->string, url->urllen);
- lua_settable (L, -3);
+ lua_rawseti (L, -2, n + 1);
return TRUE;
}
More information about the Commits
mailing list