]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix misprint
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 Oct 2019 19:19:05 +0000 (20:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 Oct 2019 19:19:05 +0000 (20:19 +0100)
src/lua/lua_url.c

index d21ab727f0f58f87c369ec1250d4a5ac4846cb3d..bd79c169747522b4aeda8279b4a49d8b31084414 100644 (file)
@@ -302,7 +302,7 @@ lua_url_tostring (lua_State *L)
 
        if (url != NULL && url->url != NULL) {
                if (url->url->protocol == PROTOCOL_MAILTO) {
-                       if (url->url->userlen + 1 + url->url->hostlen >= url->url->urllen) {
+                       if (url->url->userlen + 1 + url->url->hostlen <= url->url->urllen) {
                                lua_pushlstring (L, url->url->user,
                                                url->url->userlen + 1 + url->url->hostlen);
                        }