]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] One more fix...
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jun 2018 13:06:50 +0000 (14:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jun 2018 13:06:50 +0000 (14:06 +0100)
src/libserver/url.c

index d9ddf8357ab1138d535d62c0044e6e4f1e3e266b..650f86a28dd863ebbd03536b20d63090ef407961 100644 (file)
@@ -1017,7 +1017,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len,
                                        while (tmp < last) {
                                                if (!g_ascii_isdigit (*tmp)) {
                                                        if (*tmp == '/' || *tmp == '#' || *tmp == '?' ||
-                                                                       is_url_end (*tmp)) {
+                                                                       is_url_end (*tmp) || g_ascii_isspace (*tmp)) {
                                                                /* Port + something */
                                                                st = parse_port;
                                                                c = slash;