Update dotenv reader from Composer package

This commit is contained in:
Clemens Schwaighofer
2023-01-06 10:51:12 +09:00
parent 5a0b09a916
commit 620a5878c1
2 changed files with 5 additions and 1 deletions

View File

@@ -94,6 +94,10 @@ class DotEnv
// strip ending " and EVERYTHING that follows after that
$line = $matches[1];
}
// just be sure it is init before we fill
if (!isset($_ENV[$var])) {
$_ENV[$var] = '';
}
// strip line of slashes
$_ENV[$var] .= stripslashes($line);
}