Skip to content

Commit 278c0d0

Browse files
committed
Fixed error in function call preg_replace_callback
1 parent e880645 commit 278c0d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core_pear/Mail/mimeDecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ function _quotedPrintableDecode($input)
763763
// Replace encoded characters
764764
// ERP-modification: PHP7 deprecated the /e PCRE modifier.
765765
// $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);
766+
$input = preg_replace_callback('/=([a-f0-9]{2})/i', function ($matches) { return chr(hexdec($matches[1])); }, $input);
767767

768768
return $input;
769769
}

0 commit comments

Comments
 (0)