Browse Source

[Minor] Detect URLs that are ended with a whitespace.

tags/1.4.1
Vsevolod Stakhov 7 years ago
parent
commit
36f2638f6d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libserver/url.c

+ 1
- 1
src/libserver/url.c View File

@@ -1842,7 +1842,7 @@ url_tld_end (struct url_callback_data *cb,
match->m_len = p - match->m_begin;
return TRUE;
}
else if (*p == '/' || *p == ':' || is_url_end (*p) ||
else if (*p == '/' || *p == ':' || is_url_end (*p) || is_lwsp (*p) ||
(match->st != '<' && p == match->newline_pos)) {
/* Parse arguments, ports by normal way by url default function */
p = match->m_begin;

Loading…
Cancel
Save