aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-01 15:24:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-01 15:24:44 +0100
commitfc8a07daabc8d624d21a20437974a1a13a2a097e (patch)
tree5a53cc078fd1c492e9d7488da34b5544cf49b147
parentb8e030c3b305d87ad9884128a6cf9ca9739c7db4 (diff)
downloadrspamd-fc8a07daabc8d624d21a20437974a1a13a2a097e.tar.gz
rspamd-fc8a07daabc8d624d21a20437974a1a13a2a097e.zip
Be more permissive about url characters.
-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 64b885ba2..7efc7cd26 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;