Fix import to convert quoted-printable cr/lf correctly

This commit is contained in:
Miles Lott 2003-10-19 06:55:53 +00:00
parent de6be340f3
commit 760bed3735

View File

@ -16,6 +16,9 @@
Also start with a '#' symbol and a comma separated list will be
turned into a number of the same entries.
*/
/* $Id$ */
class import_conv
{
var $currentrecord = array(); /* used for buffering to allow uid lines to go first */
@ -48,7 +51,7 @@
function import_new_attrib($buffer,$name,$value)
{
$value = trim($value);
$value = ereg_replace('=0D=0A','\n',$value);
$value = ereg_replace('=0D=0A',"\n",$value);
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
$this->currentrecord += array($name => $value);