aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-12-12 19:03:23 +0000
committerGitHub <noreply@github.com>2017-12-12 19:03:23 +0000
commit5aa7af16f9f3b6cc27c831109b422261875f230d (patch)
treef4f08526fe9695f805d471188333cf98a4b86d01 /src
parent9e7cabba3d4f862af2846d89d2427c762f3ee9e7 (diff)
parent5a1aea65c37e15b2bf4a2989212a4d1b0b635846 (diff)
downloadrspamd-5aa7af16f9f3b6cc27c831109b422261875f230d.tar.gz
rspamd-5aa7af16f9f3b6cc27c831109b422261875f230d.zip
Merge pull request #1961 from fatalbanana/url_paren
[Fix] Deal with URLs wrapped in [] in text parts
Diffstat (limited to 'src')
-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;