Skip to content
Snippets Groups Projects
Unverified Commit 62834250 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4851 from protich/issue/pear-mimedecode

Mime Decode - Encoded chars
parents 8657218b 683812e3
No related branches found
No related tags found
No related merge requests found
...@@ -645,7 +645,10 @@ class Mail_mimeDecode extends PEAR ...@@ -645,7 +645,10 @@ class Mail_mimeDecode extends PEAR
$input = preg_replace("/=\r?\n/", '', $input); $input = preg_replace("/=\r?\n/", '', $input);
// Replace encoded characters // Replace encoded characters
$input = preg_replace('/=([a-f0-9]{2})/ie', "chr(hexdec('\\1'))", $input); $input = preg_replace_callback('/=([a-f0-9]{2})/i',
create_function('$matches',
' return chr(hexdec($matches[0]));'),
$input);
return $input; return $input;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment