aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-14 16:14:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-14 16:14:43 +0100
commit4358f493cc2365982c10e9c80e9a73bf5e6bc584 (patch)
tree956829e236b7472d207ca047c8264bf260602c8b /src/libserver/url.c
parent202c18cb66b7cf16ecfe6542580e38b7e3c4bab6 (diff)
downloadrspamd-4358f493cc2365982c10e9c80e9a73bf5e6bc584.tar.gz
rspamd-4358f493cc2365982c10e9c80e9a73bf5e6bc584.zip
[Minor] It seems we still need raw urls...
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r--src/libserver/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index fb4b4da94..01bb527f0 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -2225,6 +2225,9 @@ rspamd_url_parse (struct rspamd_url *uri,
len = end - uristring;
}
+ uri->raw = p;
+ uri->rawlen = len;
+
if (flags & RSPAMD_URL_FLAG_MISSINGSLASHES) {
len += 2;
uri->string = rspamd_mempool_alloc (pool, len + 1);