We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e880645 commit 278c0d0Copy full SHA for 278c0d0
1 file changed
core_pear/Mail/mimeDecode.php
@@ -763,7 +763,7 @@ function _quotedPrintableDecode($input)
763
// Replace encoded characters
764
// ERP-modification: PHP7 deprecated the /e PCRE modifier.
765
// $input = preg_replace('/=([a-f0-9]{2})/ie', "chr(hexdec('\\1'))", $input);
766
- $input = preg_replace_callback('/=([a-f0-9]{2})/i', "chr(hexdec('\\1'))", $input);
+ $input = preg_replace_callback('/=([a-f0-9]{2})/i', function ($matches) { return chr(hexdec($matches[1])); }, $input);
767
768
return $input;
769
}
0 commit comments