]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Deal with URLs wrapped in [] in text parts 1961/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 12 Dec 2017 10:32:54 +0000 (12:32 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 12 Dec 2017 10:32:54 +0000 (12:32 +0200)
src/libserver/url.c

index 0d8acc32be55996f7af9d4677ad3c7e53914465a..83ffd36d991f4f27902e055331a2069f4192a45d 100644 (file)
@@ -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;