mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +02:00
Fix import to convert quoted-printable cr/lf correctly
This commit is contained in:
parent
de6be340f3
commit
760bed3735
@ -16,6 +16,9 @@
|
|||||||
Also start with a '#' symbol and a comma separated list will be
|
Also start with a '#' symbol and a comma separated list will be
|
||||||
turned into a number of the same entries.
|
turned into a number of the same entries.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
class import_conv
|
class import_conv
|
||||||
{
|
{
|
||||||
var $currentrecord = array(); /* used for buffering to allow uid lines to go first */
|
var $currentrecord = array(); /* used for buffering to allow uid lines to go first */
|
||||||
@ -48,7 +51,7 @@
|
|||||||
function import_new_attrib($buffer,$name,$value)
|
function import_new_attrib($buffer,$name,$value)
|
||||||
{
|
{
|
||||||
$value = trim($value);
|
$value = trim($value);
|
||||||
$value = ereg_replace('=0D=0A','\n',$value);
|
$value = ereg_replace('=0D=0A',"\n",$value);
|
||||||
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
||||||
$this->currentrecord += array($name => $value);
|
$this->currentrecord += array($name => $value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user