Столкнулась с ошибкой в работе интеграции с почтой. Настроила ящик, письма приходят, формируются задачи из входящего - все отлично, но крон периодически выдает вот такое письмо с ошибкой:
PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/c/cj76664/tmf/public_html/plugins/ext/classes/mail/mime_decode.php on line 861
в этом месте в mime_decode.php расположена вот эта функция, может ее нужно частично закомментировать или заменить? сама не разберусь (
Код: Выделить всё
/**
* Given a quoted-printable string, this
* function will decode and return it.
*
* @param string Input body to decode
* @return string Decoded body
* @access private
*/
function _quotedPrintableDecode($input)
{
// Remove soft line breaks
$input = preg_replace("/=\r?\n/", '', $input);
// Replace encoded characters
//$cb = create_function('$matches', ' return chr(hexdec($matches[0]));');
$cb = function($matches){
$matches[0] = preg_replace("/[[:^print:]]/", "", $matches[0]);
return chr(hexdec($matches[0]));
};
$input = preg_replace_callback( '/=([a-f0-9]{2})/i', $cb, $input);
return $input;
}спасибо!!