From c3d2170518eb6c4f07c779c56f1f70e3fcb57c10 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 12 Dec 2012 10:18:40 +0000 Subject: [PATCH] remove CR from start and end of lang string line read from file, as it breaks stuff e.g. in eMail module --- phpgwapi/inc/class.translation.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 96c932b794..a2463850b6 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -463,7 +463,7 @@ class translation //while(($line = fgetcsv($f, 1024, "\t"))) while($line = fgets($f)) { - $line = explode("\t", $line); + $line = explode("\t", trim($line)); ++$line_nr; if (count($line) != 4) continue; list($l_id,$l_app,$l_lang,$l_translation) = $line;