Project

General

Profile

Actions

Bug #62245

closed

Extension installer: Handle multiple blanks

Added by Martin Bless over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64627: Extension installer: Handle multiple blanksClosed2015-01-30

Actions
Actions

Also available in: Atom PDF