]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
Bug 1853138 - Switch to Email::Address::XS (#160)
authorMartin Renvoize <mrenvoize@users.noreply.github.com>
Fri, 22 Mar 2024 08:35:42 +0000 (08:35 +0000)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2024 08:35:42 +0000 (04:35 -0400)
commit2002c3da428cfc5dc06ffff137e88dd33a08fa5a
tree74e3cbc0e18cfca990b1147ec597b9f561dc1cab
parent08679016bd83d2b10bfe47f9e9d45bcae1e9981a
Bug 1853138 - Switch to Email::Address::XS (#160)

* Bug 1853138 - Switch to Email::Address::XS

This patch updates us from using Email::Address to Email::Address::XS to
resolve CVE-2015-7686.

Regex comparisons have been replaced by parse + is_valid calls as per
current documentation.

Email::Address->parse($string) used to parse all addresses out of a
general string, however Email::Address::XS expects the string to only
contain addresses in the verious forms.

This patch uses a basic regex to parse out strings that look like email
addresses from the overall string passed, before passing to
Email::Address::XS for validation and splitting out the 'host' part of
the address.

This patch restores the Email::Address::XS entry in Requirements.pm so
that we can specify which version of the module we wish to use and make
it explicit that we're using the module rather than relying on
Email::Sender pulling it in for us.
Bugzilla/Config/Common.pm
Bugzilla/FlagType.pm
Bugzilla/Install/Requirements.pm
Bugzilla/Migrate/Gnats.pm
Bugzilla/Util.pm
email_in.pl