summaryrefslogtreecommitdiff
path: root/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php
blob: 47eee5aa76bbb97cd449c2de7c5f681121983fa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);