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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1961%2Fhead;p=thirdparty%2Frspamd.git [Fix] Deal with URLs wrapped in [] in text parts --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 0d8acc32be..83ffd36d99 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;