]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Be more permissive about url characters.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 14:24:44 +0000 (15:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 14:24:44 +0000 (15:24 +0100)
src/libserver/url.c

index 64b885ba2bed58245925d7f50387f4a2c5895e43..7efc7cd2671e7db29d920f6eab739c1b97f4512b 100644 (file)
@@ -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;