From: Andrew Lewis Date: Tue, 12 Dec 2017 10:32:54 +0000 (+0200) Subject: [Fix] Deal with URLs wrapped in [] in text parts X-Git-Tag: 1.7.0~346^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1961%2Fhead;p=rspamd.git [Fix] Deal with URLs wrapped in [] in text parts --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 0d8acc32b..83ffd36d9 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -525,6 +525,7 @@ is_url_start (gchar c) { if (c == '(' || c == '{' || + c == '[' || c == '<' || c == '\'') { return TRUE; @@ -538,6 +539,7 @@ is_url_end (gchar c) { if (c == ')' || c == '}' || + c == ']' || c == '>' || c == '\'') { return TRUE;