]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Use full URL when making an HTTP request
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 18:43:34 +0000 (19:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 19:26:17 +0000 (20:26 +0100)
src/libutil/http.c

index 7f69843ea8672468c49cfab685f7c3ee6d6cc8bb..2ef897da8f446b63be6e162b843cdd00d0df21ce 100644 (file)
@@ -2409,7 +2409,7 @@ rspamd_http_message_from_url (const gchar *url)
        }
        else {
                path = url + pu.field_data[UF_PATH].off;
-               pathlen = pu.field_data[UF_PATH].len;
+               pathlen = urllen - pu.field_data[UF_PATH].off;
        }
 
        msg = rspamd_http_new_message (HTTP_REQUEST);