1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

fix: correctly handle = in .env

This commit is contained in:
megatank58 2022-10-09 11:29:00 +05:30 committed by GitHub
parent 676709e706
commit d898ccd8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ class Env
$data = explode("\n", $data);
foreach ($data as &$row) {
$row = explode('=', $row);
$row = explode('=', $row, 2);
$key = (isset($row[0])) ? trim($row[0]) : null;
$value = (isset($row[1])) ? trim($row[1]) : null;