From 2d272117cc37d53785b615208764967f8dc7fc3c Mon Sep 17 00:00:00 2001 From: Dag Date: Mon, 12 Sep 2022 23:14:11 +0200 Subject: [PATCH] fix: dont error out for invalid env names (#3030) --- lib/Configuration.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Configuration.php b/lib/Configuration.php index 623f469d..cec51c4c 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -101,6 +101,10 @@ final class Configuration foreach ($env as $envName => $envValue) { $nameParts = explode('_', $envName); if ($nameParts[0] === 'RSSBRIDGE') { + if (count($nameParts) < 3) { + // Invalid env name + continue; + } $header = $nameParts[1]; $key = $nameParts[2]; if ($envValue === 'true' || $envValue === 'false') {