diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-12 19:03:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 19:03:23 +0000 |
commit | 5aa7af16f9f3b6cc27c831109b422261875f230d (patch) | |
tree | f4f08526fe9695f805d471188333cf98a4b86d01 /src | |
parent | 9e7cabba3d4f862af2846d89d2427c762f3ee9e7 (diff) | |
parent | 5a1aea65c37e15b2bf4a2989212a4d1b0b635846 (diff) | |
download | rspamd-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.c | 2 |
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; |