1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Add Email::Address::UseXS which is intended for use with mail/p5-Email-Sender

Email::Address::UseXS - ensure that any code uses Email::Address::XS instead of Email::Address

To use, simply add use Email::Address::UseXS; in your code before anything that tries to load in Email::Address.

Differential Revision:	https://reviews.freebsd.org/D18479
This commit is contained in:
Dan Langille 2019-01-04 19:02:36 +00:00
parent a901ee11ee
commit c87b95273c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=489262
5 changed files with 39 additions and 0 deletions

View File

@ -316,6 +316,7 @@
SUBDIR += p5-Email-Address
SUBDIR += p5-Email-Address-List
SUBDIR += p5-Email-Address-Loose
SUBDIR += p5-Email-Address-UseXS
SUBDIR += p5-Email-Address-XS
SUBDIR += p5-Email-AddressParser
SUBDIR += p5-Email-Date

View File

@ -0,0 +1,21 @@
# Created by: Dan Langille <dvl@FreeBSD.org>
# $FreeBSD$
PORTNAME= Email-Address-UseXS
PORTVERSION= 1.000
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= dvl@FreeBSD.org
COMMENT= Ensure that any code uses Email::Address::XS instead of Email::Address
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1544210127
SHA256 (Email-Address-UseXS-1.000.tar.gz) = b10a52409a2c85b65afcd4ed108233833440d298689bb97a256c75b5b7802df0
SIZE (Email-Address-UseXS-1.000.tar.gz) = 14040

View File

@ -0,0 +1,12 @@
To use, simply add use Email::Address::UseXS; in your code before anything that
tries to load in Email::Address.
use Email::Address::UseXS;
print Email::Address->parse('user@example.com');
Email::Address is dangerous, badly-formed input can cause very slow regex
expressions (taking minutes or more to run).
See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7686 for details.
WWW: https://metacpan.org/pod/Email::Address::UseXS

View File

@ -0,0 +1,2 @@
%%SITE_PERL%%/Email/Address/UseXS.pm
%%PERL5_MAN3%%/Email::Address::UseXS.3.gz