diff --git a/mail/pear-Mail_mimeDecode/Makefile b/mail/pear-Mail_mimeDecode/Makefile index 6a78c14199f9..e656d76cd925 100644 --- a/mail/pear-Mail_mimeDecode/Makefile +++ b/mail/pear-Mail_mimeDecode/Makefile @@ -1,17 +1,18 @@ # Created by: Zhen REN PORTNAME= Mail_mimeDecode PORTVERSION= 1.5.6 +PORTREVISION= 1 CATEGORIES= mail www pear MAINTAINER= dbaio@FreeBSD.org COMMENT= Provides a class to decode mime messages LICENSE= BSD3CLAUSE RUN_DEPENDS= ${PEARDIR}/Mail/mime.php:mail/pear-Mail_Mime@${PHP_FLAVOR} USES= pear NO_ARCH= yes .include diff --git a/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php b/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php new file mode 100644 index 000000000000..47eee5aa76bb --- /dev/null +++ b/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php @@ -0,0 +1,11 @@ +--- Mail/mimeDecode.php.orig 2016-08-29 03:04:25 UTC ++++ Mail/mimeDecode.php +@@ -834,7 +834,7 @@ class Mail_mimeDecode extends PEAR + + // Replace encoded characters + +- $cb = create_function('$matches', ' return chr(hexdec($matches[0]));'); ++ $cb = function(array $matches) { return chr(hexdec($matches[0])); }; + + $input = preg_replace_callback( '/=([a-f0-9]{2})/i', $cb, $input); +