[BUGFIX] Table wizard: large fields and BR-tags
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / CsvUtility.php
index dc0414e..15f395f 100644 (file)
@@ -40,7 +40,7 @@ class CsvUtility
             rewind($handle);
             while (($cells = fgetcsv($handle, 0, $fieldDelimiter, $fieldEnclosure)) !== false) {
                 $maximumCellCount = max(count($cells), $maximumCellCount);
             rewind($handle);
             while (($cells = fgetcsv($handle, 0, $fieldDelimiter, $fieldEnclosure)) !== false) {
                 $maximumCellCount = max(count($cells), $maximumCellCount);
-                $multiArray[] = $cells;
+                $multiArray[] = preg_replace('|<br */?>|i', LF, $cells);
             }
             fclose($handle);
         }
             }
             fclose($handle);
         }