mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
fix: dont error out for invalid env names (#3030)
This commit is contained in:
parent
5a9336df12
commit
2d272117cc
@ -101,6 +101,10 @@ final class Configuration
|
|||||||
foreach ($env as $envName => $envValue) {
|
foreach ($env as $envName => $envValue) {
|
||||||
$nameParts = explode('_', $envName);
|
$nameParts = explode('_', $envName);
|
||||||
if ($nameParts[0] === 'RSSBRIDGE') {
|
if ($nameParts[0] === 'RSSBRIDGE') {
|
||||||
|
if (count($nameParts) < 3) {
|
||||||
|
// Invalid env name
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$header = $nameParts[1];
|
$header = $nameParts[1];
|
||||||
$key = $nameParts[2];
|
$key = $nameParts[2];
|
||||||
if ($envValue === 'true' || $envValue === 'false') {
|
if ($envValue === 'true' || $envValue === 'false') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user