Skip to content

Commit

Permalink
Fixed error in function call preg_replace_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Gundam committed Jun 24, 2016
1 parent e880645 commit 278c0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core_pear/Mail/mimeDecode.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function _quotedPrintableDecode($input)
// Replace encoded characters
// ERP-modification: PHP7 deprecated the /e PCRE modifier.
// $input = preg_replace('/=([a-f0-9]{2})/ie', "chr(hexdec('\\1'))", $input);
$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);

return $input;
}
Expand Down

0 comments on commit 278c0d0

Please sign in to comment.