From 047fed2c70c3fc09562ceab179883efbc22677df Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 15 Nov 2016 20:17:17 +0000 Subject: [PATCH] Make the submodule config parser a tad more liberal Can still go wrong if the submodule name contains an equal sign or a period, or the value contains a newline. But since this isn't dealing with arbitrary data, that seems unlikely. --- common/code/boost_super_project.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/code/boost_super_project.php b/common/code/boost_super_project.php index 0ad87275..8935f7f6 100644 --- a/common/code/boost_super_project.php +++ b/common/code/boost_super_project.php @@ -45,8 +45,8 @@ class BoostSuperProject { { if (!$line) continue; - if (preg_match('@^submodule\.([\w/]+)\.(\w+)=(.*)$@', trim($line), $matches)) { - $modules[$matches[1]][$matches[2]] = $matches[3]; + if (preg_match('@^submodule\.([^.=]+)\.([^.=]+)=(.*)$@i', trim($line), $matches)) { + $modules[$matches[1]][strtolower($matches[2])] = $matches[3]; } else { throw new BoostException("Unsupported config line: {$line}");