From: Alexander Moisseev Date: Tue, 18 Oct 2016 10:24:52 +0000 (+0300) Subject: [Minor] Fix `get_tld()` functions descriptions X-Git-Tag: 1.4.0~236^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1053%2Fhead;p=thirdparty%2Frspamd.git [Minor] Fix `get_tld()` functions descriptions --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 2fd34664b2..b51487a885 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -338,8 +338,8 @@ lua_url_get_phished (lua_State *L) /*** * @method url:get_tld() - * Get top level domain part of the url host - * @return {string} top level part of the url host + * Get effective second level domain part (eSLD) of the url host + * @return {string} effective second level domain part (eSLD) of the url host */ static gint lua_url_get_tld (lua_State *L) diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 936c31ce03..03afb2913a 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -164,10 +164,10 @@ LUA_FUNCTION_DEF (util, humanize_number); /*** * @function util.get_tld(host) - * Returns tld for the specified host + * Returns effective second level domain part (eSLD) for the specified host * * @param {string} host hostname - * @return {string} tld part of hostname or the full hostname + * @return {string} eSLD part of the hostname or the full hostname if eSLD was not found */ LUA_FUNCTION_DEF (util, get_tld);