diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-01 16:54:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-01 16:54:04 +0100 |
commit | 5e6082be921b46af1884661d749297a6c00ab7e2 (patch) | |
tree | 10a3c3b24bb5ee280881a52442313ba1ce5a97cd /src/lua | |
parent | 93e50b0d8221b0ec542d7b9e482607989153d9d0 (diff) | |
download | rspamd-5e6082be921b46af1884661d749297a6c00ab7e2.tar.gz rspamd-5e6082be921b46af1884661d749297a6c00ab7e2.zip |
Fix path field in url:to_table method.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 41bcf37bc..3e74ceadc 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); |