/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.96-uribl_validate_domains.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme9/qpsmtpd-0.96-uribl_validate_domains.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jul 12 19:44:43 2016 UTC (8 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-9_el6_sme, qpsmtpd-0_96-11_el6_sme, HEAD
* Tue Jul 12 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-8.sme
- Validate domains found in uribl with Data::Validate::Domain [SME: 9499]

1 vip-ire 1.1 diff -Nur qpsmtpd-0.96/plugins/uribl qpsmtpd-0.96_bz9467/plugins/uribl
2     --- qpsmtpd-0.96/plugins/uribl 2016-07-11 22:28:55.105488861 +0200
3     +++ qpsmtpd-0.96_bz9467/plugins/uribl 2016-07-11 22:32:14.607442677 +0200
4     @@ -96,6 +96,9 @@
5    
6     use Time::HiRes qw(time);
7     use IO::Select;
8     +use Data::Validate::Domain;
9     +
10     +my $v = Data::Validate::Domain->new;
11    
12     # ccTLDs that allocate domain names within a strict two-level hierarchy,
13     # as in *.co.uk
14     @@ -348,7 +351,7 @@
15     museum|name|net|org|pro|tel|travel|
16     [a-zA-Z]{2})
17     )(?!\w)
18     - }gix
19     + }gix && $v->is_domain($1)
20     )
21     {
22     my $host = lc $1;
23     @@ -393,7 +396,7 @@
24     museum|name|net|org|pro|tel|travel|
25     [a-zA-Z]{2})
26     )
27     - }gix
28     + }gix && $v->is_domain($1)
29     )
30     {
31     my $host = lc $1;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed