function _convert_pre(&$text)
{
while(preg_match('/
]*>(.*)<\/pre>/ismU', $text, $matches)) {
$result = preg_replace($this->pre_search, $this->pre_replace, $matches[1]);
$text = preg_replace('/]*>.*<\/pre>/ismU', '
' . $result . '
', $text, 1);
}
}
'$' in the email content will cause this function to loop.
Chane
var $pre_search = array(
"/\n/",
"/\t/",
'/ /',
'/]*>/',
'/<\/pre>/'
);
to
var $pre_search = array(
"/\n/",
"/\t/",
'/ /',
'/]*>/',
'/<\/pre>/',
'/\$/'
);
Change
var $pre_replace = array(
'
',
' ',
' ',
'',
''
);
to
var $pre_replace = array(
'
',
' ',
' ',
'',
'',
'/\\\$/'
);
yk