PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #1675

post_fix_php_cr() in Mail.php doesn't work with windows linebreaks

Details

Submitted2004-06-18 12:16 UTC
Fromtobias at weidelt dot de
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.4
OSLinux/Windows
Roadmaps(Not assigned)

Comments

[2004-06-18 12:16 UTC] tobias at weidelt dot de

Description:
------------
File Template/Flexy/Compiler/Regex/Mail.php:

please replace function post_fix_php_cr
with something like that:

function post_fix_php_cr ($input)
{
$input = str_replace("?>\n","?>\n\n",$input);
return str_replace("?>\r\n","?>\r\n\r\n",$input);
}