aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-16 17:08:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-16 17:08:07 +0000
commitd0c76391f02b171b053a431b8496b48b9134ca3b (patch)
tree3b17e1f962377a26db60db09eface7e6f710c2eb /src/libserver
parent280877ab36a377dcd9d06386d399007ae533c398 (diff)
downloadrspamd-d0c76391f02b171b053a431b8496b48b9134ca3b.tar.gz
rspamd-d0c76391f02b171b053a431b8496b48b9134ca3b.zip
[Minor] Firther relax href parsing
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index bae3ebd4f..73272799a 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1386,7 +1386,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len,
c = p + 1;
st = parse_part;
}
- else if (is_url_end (t)) {
+ else if (!(parse_flags & RSPAMD_URL_PARSE_HREF) && is_url_end (t)) {
goto set;
}
else if (is_lwsp (t)) {
@@ -1410,7 +1410,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len,
c = p + 1;
st = parse_part;
}
- else if (is_url_end (t)) {
+ else if (!(parse_flags & RSPAMD_URL_PARSE_HREF) && is_url_end (t)) {
goto set;
}
else if (is_lwsp (t)) {
@@ -1427,7 +1427,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len,
p++;
break;
case parse_part:
- if (is_url_end (t)) {
+ if (!(parse_flags & RSPAMD_URL_PARSE_HREF) && is_url_end (t)) {
goto set;
}
else if (is_lwsp (t)) {