Browse Source

[Fix] Fix border case in urls detector

tags/1.3.0
Vsevolod Stakhov 7 years ago
parent
commit
38fa43b48d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libserver/url.c

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

@@ -1886,7 +1886,7 @@ url_web_end (struct url_callback_data *cb,
return FALSE;
}

if (last < cb->end && *last == '>') {
if (last < cb->end && (*last == '>' && last != match->newline_pos)) {
/* We need to ensure that url also starts with '>' */
if (match->st != '<') {
return FALSE;

Loading…
Cancel
Save