From: Vsevolod Stakhov Date: Wed, 1 Jul 2015 14:24:44 +0000 (+0100) Subject: Be more permissive about url characters. X-Git-Tag: 1.0.0~470 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc8a07daabc8d624d21a20437974a1a13a2a097e;p=thirdparty%2Frspamd.git Be more permissive about url characters. --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 64b885ba2b..7efc7cd267 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -805,7 +805,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, c = p + 1; st = parse_query; } - else if (!is_urlsafe (t)) { + else if (is_lwsp (t)) { if (strict) { if (g_ascii_isspace (t)) { goto set; @@ -826,7 +826,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, c = p + 1; st = parse_part; } - else if (!is_urlsafe (t)) { + else if (is_lwsp (t)) { if (strict) { if (g_ascii_isspace (t)) { goto set; @@ -840,7 +840,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, p ++; break; case parse_part: - if (!is_urlsafe (t)) { + if (is_lwsp (t)) { if (strict) { if (g_ascii_isspace (t)) { goto set;