From 161f96b418151d721c2d6a6f299744c0b3ed0b45 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Feb 2006 14:25:57 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20la=20donn=E9e=20contient=20des=20re?= =?UTF-8?q?tours=20chariots,=20on=20transforme=20en=20caract=E8re=20dans?= =?UTF-8?q?=20export=20csv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/export/export_csv.modules.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/includes/modules/export/export_csv.modules.php b/htdocs/includes/modules/export/export_csv.modules.php index 6e0ea41039b..81237280e94 100644 --- a/htdocs/includes/modules/export/export_csv.modules.php +++ b/htdocs/includes/modules/export/export_csv.modules.php @@ -131,7 +131,10 @@ class ExportCsv extends ModeleExports { $alias=$array_alias[$code]; //print "dd".$alias; - fwrite($this->handle,ereg_replace(';',',',$objp->$alias).";"); + $newvalue=ereg_replace(';',',',$objp->$alias); + $newvalue=ereg_replace("\r",'',$newvalue); + $newvalue=ereg_replace("\n",'\n',$newvalue); + fwrite($this->handle,$newvalue.";"); } fwrite($this->handle,"\n"); return 0;