Procházet zdrojové kódy

[Minor] Firther relax href parsing

tags/2.5
Vsevolod Stakhov před 4 roky
rodič
revize
d0c76391f0
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      src/libserver/url.c

+ 3
- 3
src/libserver/url.c Zobrazit soubor

@@ -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)) {

Načítá se…
Zrušit
Uložit