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

Contents of /rpms/qpsmtpd/sme10/qpsmtpd-0.96-uribl_validate_domains.patch

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


Revision 1.1 - (show annotations) (download)
Mon Jul 11 20:47:43 2016 UTC (8 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-18_el7_sme, HEAD
* Mon Jul 11 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-16.sme
- Validate domains found in uribl with Data::Validate::Domain [SME: 9467]

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