[BUGFIX] Extension installer: Handle multiple blanks
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Service / SqlSchemaMigrationService.php
index e3f37e6..4c5505b 100644 (file)
@@ -103,8 +103,8 @@ class SqlSchemaMigrationService {
                                        // Strip trailing commas
                                        $lineV = preg_replace('/,$/', '', $value);
                                        $lineV = str_replace('`', '', $lineV);
-                                       // Remove double blanks
-                                       $lineV = str_replace('  ', ' ', $lineV);
+                                       // Reduce muliple blanks and tabs except newline
+                                       $lineV = preg_replace('/\h+/', ' ', $lineV);
                                        $parts = explode(' ', $lineV, 2);
                                        // Field definition
                                        if (!preg_match('/(PRIMARY|UNIQUE|FULLTEXT|INDEX|KEY)/', $parts[0])) {