aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-12-12 12:32:54 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-12-12 12:32:54 +0200
commit5a1aea65c37e15b2bf4a2989212a4d1b0b635846 (patch)
treecf7d960a9c4cbeca21a8a17683f7ce66863aee4c
parentcb80955dc6fed7de8c8c66ab740dae4c27722bbc (diff)
downloadrspamd-5a1aea65c37e15b2bf4a2989212a4d1b0b635846.tar.gz
rspamd-5a1aea65c37e15b2bf4a2989212a4d1b0b635846.zip
[Fix] Deal with URLs wrapped in [] in text parts
-rw-r--r--src/libserver/url.c2
1 files changed, 2 insertions, 0 deletions
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;