File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/core/Mage/Core/Helper Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,11 @@ public function setEnvStore(array $envStorage): void
197
197
public function getEnv (): array
198
198
{
199
199
if (empty ($ this ->envStore )) {
200
- $ this ->envStore = getenv ();
200
+ $ env = getenv ();
201
+ $ env = array_filter ($ env , function ($ key ) {
202
+ return str_starts_with ($ key , static ::ENV_STARTS_WITH );
203
+ }, ARRAY_FILTER_USE_KEY );
204
+ $ this ->envStore = $ env ;
201
205
}
202
206
return $ this ->envStore ;
203
207
}
@@ -227,10 +231,6 @@ protected function getConfigKey(string $configKey): array
227
231
228
232
protected function isConfigKeyValid (string $ configKey ): bool
229
233
{
230
- if (!str_starts_with ($ configKey , static ::ENV_STARTS_WITH )) {
231
- return false ;
232
- }
233
-
234
234
$ sectionGroupFieldRegexp = sprintf ('([%s]*) ' , implode ('' , static ::ALLOWED_CHARS ));
235
235
$ allowedChars = sprintf ('[%s] ' , implode ('' , static ::ALLOWED_CHARS ));
236
236
$ regexp = '/ ' . static ::ENV_STARTS_WITH . static ::ENV_KEY_SEPARATOR . '(WEBSITES ' . static ::ENV_KEY_SEPARATOR
You can’t perform that action at this time.
0 commit comments