Issue Bug Closed

#62245Extension installer: Handle multiple blanks

Martin Bless 10/15/14, 11:09 updated 10/02/18, 11:51

Description

The parser of the ext_tables.sql file removes double blanks from the input line – but only once. So if there are multiple blanks at least double blanks remain and irritate the later comparison about whether the field definition is different.

*Problem:*
Line 508 in TYPO3.CMS/t3lib/class.t3lib_install.php:

   $lineV = str_replace('  ', ' ', $lineV); // Remove double blanks

*Solution:*
Line 508 in TYPO3.CMS/t3lib/class.t3lib_install.php:

   $lineV = preg_replace('/[ ][ ]+/', ' ', $lineV); // Remove multiple blanks

I’ll (try to) submit this solution as a patch now on review.typo3.org.

Reviews 3