[FOLLOWUP][BUGFIX] Fetching configuration-comments should require no comma 45/50445/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 31 Oct 2016 02:29:39 +0000 (03:29 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 31 Oct 2016 02:30:13 +0000 (03:30 +0100)
Fix regex to capture description correctly.

Resolves: #78333
Releases: master, 7.6
Change-Id: I8b731c2e1c2a4e9e3d1fdf01823bbefadee367fb
Reviewed-on: https://review.typo3.org/50445
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 43d75a3..cdc1a2a 100644 (file)
@@ -219,7 +219,7 @@ class AllConfiguration extends Action\AbstractAction
                 if ($lc === '];') {
                     break;
                 }
-                if (preg_match('#["\']([\\w_-]*)["\']\\s*=>\\s*(?:(\\[).*|(?!//).*//\\s*(.*))#i', $lc, $reg)) {
+                if (preg_match('#["\']([\\w_-]*)["\']\\s*=>\\s*(?:(\\[).*|(?:(?!//).)*//\\s*(.*))#i', $lc, $reg)) {
                     if ($reg[2] === '[' && $reg[1] === strtoupper($reg[1])) {
                         $mainKey = $reg[1];
                     } elseif ($mainKey) {