]> source.dussan.org Git - rspamd.git/commitdiff
Remove some chars from domain safe class
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Jan 2016 15:10:21 +0000 (15:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Jan 2016 15:10:21 +0000 (15:10 +0000)
src/libserver/url.c

index e68b13a9260453b3bd02cd0949eeba5013427076..90f9938743b060565d1e421ceabb225051bfde9e 100644 (file)
@@ -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,