aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index d9ddf8357..650f86a28 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -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;