From: Vsevolod Stakhov Date: Wed, 1 Jul 2015 15:54:04 +0000 (+0100) Subject: Fix path field in url:to_table method. X-Git-Tag: 1.0.0~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e6082be921b46af1884661d749297a6c00ab7e2;p=thirdparty%2Frspamd.git Fix path field in url:to_table method. --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 41bcf37bca..3e74ceadc3 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -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);