summaryrefslogtreecommitdiff
blob: e167af7f6a33e2e8d9add60018b51982f4f8f87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
https://pear.php.net/bugs/bug.php?id=23775
--- a/Mail/mimeDecode.php
+++ b/Mail/mimeDecode.php
@@ -834,7 +834,7 @@
 
         // Replace encoded characters
 		 
-        $cb = create_function('$matches',  ' return chr(hexdec($matches[0]));');
+        $cb = function($matches) { return chr(hexdec($matches[0])); };
          
         $input = preg_replace_callback( '/=([a-f0-9]{2})/i', $cb, $input);