Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/mime_decode_helper.php
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Line(s) | |||||
$return->parts[] = $part; | $return->parts[] = $part; | ||||
} | } | ||||
break; | break; | ||||
case 'message/rfc822': | case 'message/rfc822': | ||||
case 'message/disposition-notification': | case 'message/disposition-notification': | ||||
// create another instance, not to interfear with main parser | // create another instance, not to interfear with main parser | ||||
/** @var MimeDecodeHelper $mime_decode_helper */ | |||||
$mime_decode_helper = $this->Application->makeClass('MimeDecodeHelper'); | $mime_decode_helper = $this->Application->makeClass('MimeDecodeHelper'); | ||||
/* @var $mime_decode_helper MimeDecodeHelper */ | |||||
$mime_decode_helper->InitHelper($body); | $mime_decode_helper->InitHelper($body); | ||||
$return->parts[] = $mime_decode_helper->decode(true, $this->_includeBodies, $this->_decodeBodies); | $return->parts[] = $mime_decode_helper->decode(true, $this->_includeBodies, $this->_decodeBodies); | ||||
unset($mime_decode_helper); | unset($mime_decode_helper); | ||||
break; | break; | ||||
default: | default: | ||||
▲ Show 20 Lines • Show All 246 Lines • ▼ Show 20 Line(s) | |||||
foreach ($matches as $value) { | foreach ($matches as $value) { | ||||
$string = str_replace($value, chr(hexdec(substr($value,1))), $string); | $string = str_replace($value, chr(hexdec(substr($value,1))), $string); | ||||
} | } | ||||
} | } | ||||
return $string; | return $string; | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |