[BUGFIX] Wrong usage of preg_match in Install Tool 09/40109/3
authorMarkus Klein <markus.klein@typo3.org>
Mon, 8 Jun 2015 18:46:18 +0000 (20:46 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 8 Jun 2015 22:24:52 +0000 (00:24 +0200)
Resolves: #67358
Releases: master
Change-Id: Ia3a82f14622a7867b4a59f846c2c3c8dd54fe5ae
Reviewed-on: http://review.typo3.org/40109
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/install/Classes/Controller/Action/Tool/AllConfiguration.php

index be6135e..7751ef7 100644 (file)
@@ -89,7 +89,7 @@ class AllConfiguration extends Action\AbstractAction {
                                        // Don't allow editing stuff which is added by extensions
                                        // Make sure we fix potentially duplicated entries from older setups
                                        $potentialValue = str_replace(array('\' . LF . \'', '\' . LF . \''), array(LF, LF), $value);
-                                       while (preg_match('/' . preg_quote($GLOBALS['TYPO3_CONF_VARS_extensionAdded'][$sectionName][$key], '/') . '$/', '', $potentialValue)) {
+                                       while (preg_match('/' . preg_quote($GLOBALS['TYPO3_CONF_VARS_extensionAdded'][$sectionName][$key], '/') . '$/', $potentialValue)) {
                                                $potentialValue = preg_replace('/' . preg_quote($GLOBALS['TYPO3_CONF_VARS_extensionAdded'][$sectionName][$key], '/') . '$/', '', $potentialValue);
                                        }
                                        $value = $potentialValue;