commit d0c7639: [Minor] Firther relax href parsing
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Mar 16 17:14:08 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-03-16 17:08:07 +0000
URL: https://github.com/rspamd/rspamd/commit/d0c76391f02b171b053a431b8496b48b9134ca3b (HEAD -> master)
[Minor] Firther relax href parsing
---
src/libserver/url.c | 6 +++---
1 file 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)) {
More information about the Commits
mailing list