1
0
Fork 0

Ensure integer env vars do not cause a crash, fixes #11908

pull/11922/head
Jordi Boggiano 2024-04-03 10:36:39 +02:00
parent dd18a5fe55
commit f01ec4a98f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ class Factory
private static function useXdg(): bool private static function useXdg(): bool
{ {
foreach (array_keys($_SERVER) as $key) { foreach (array_keys($_SERVER) as $key) {
if (strpos($key, 'XDG_') === 0) { if (strpos((string) $key, 'XDG_') === 0) {
return true; return true;
} }
} }