Internal: Fix env variable lookup with lowercase conversion - refs BT#22161

pull/5901/head
christianbeeznst 10 months ago
parent 68b417db59
commit 8f0dc27297
  1. 1
      public/main/inc/lib/api.lib.php

@ -6857,6 +6857,7 @@ function get_hosting_limit(int $urlId, string $limitName): mixed
*/ */
function api_get_env_variable(string $variable, mixed $default = null): mixed function api_get_env_variable(string $variable, mixed $default = null): mixed
{ {
$variable = strtolower($variable);
if (Container::$container->hasParameter($variable)) { if (Container::$container->hasParameter($variable)) {
return Container::$container->getParameter($variable); return Container::$container->getParameter($variable);
} }

Loading…
Cancel
Save