aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-20 15:10:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-20 15:10:21 +0000
commitdfe3d5560b54f60c83512ba3c3f1278a43540e38 (patch)
treeda3699db23851a7ab44c7ba99968683ca6afc009 /src/libserver
parent9b8717cad77b0b9caa0124a16ba8067d9ceef2a2 (diff)
downloadrspamd-dfe3d5560b54f60c83512ba3c3f1278a43540e38.tar.gz
rspamd-dfe3d5560b54f60c83512ba3c3f1278a43540e38.zip
Remove some chars from domain safe class
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/url.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index e68b13a92..90f993874 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -163,7 +163,7 @@ enum {
static const unsigned int url_scanner_table[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, IS_LWSP, IS_LWSP, IS_LWSP, IS_LWSP, IS_LWSP, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, IS_LWSP /* */,
- IS_MAILSAFE /* ! */, IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* " */,
+ IS_MAILSAFE /* ! */, IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* " */,
IS_MAILSAFE /* # */, IS_MAILSAFE /* $ */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* % */, 0 /* & */, IS_MAILSAFE /* ' */,
IS_MAILSAFE /* ( */, IS_MAILSAFE /* ) */, IS_MAILSAFE /* * */,
@@ -211,7 +211,7 @@ static const unsigned int url_scanner_table[256] = {
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* \ */, IS_MAILSAFE /* ] */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* ^ */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* _ */,
- IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* ` */,
+ IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* ` */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* a */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* b */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* c */,
@@ -238,10 +238,10 @@ static const unsigned int url_scanner_table[256] = {
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* x */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* y */,
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* z */,
- IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* { */,
- IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* | */,
- IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* } */,
- IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE /* ~ */, 0, IS_URLSAFE|IS_DOMAIN,
+ IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* { */,
+ IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* | */,
+ IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* } */,
+ IS_URLSAFE|IS_DOMAIN_END|IS_MAILSAFE /* ~ */, 0, IS_URLSAFE|IS_DOMAIN,
IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN,
IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN,
IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN, IS_URLSAFE|IS_DOMAIN,