Fix: Function was truncated lines ended with n and r

This commit is contained in:
Laurent Destailleur 2009-05-22 15:15:11 +00:00
parent 47d77ba51b
commit b8af89aae3

View File

@ -2533,7 +2533,7 @@ function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
*/
function dol_htmlcleanlastbr($stringtodecode)
{
$ret=eregi_replace('(<br>|<br( [ a-zA-Z_="]*)?/?>|\n|\r)+$',"",$stringtodecode);
$ret=eregi_replace('(<br>|<br( [ a-zA-Z_="]*)?/?>|'."\n".'|'."\r".')+$',"",$stringtodecode);
return $ret;
}