- fix ENV section handling

This commit is contained in:
Michael Wallner 2006-11-22 10:44:54 +00:00
parent c60949d0b1
commit 10e23ddfd5

View File

@ -1154,11 +1154,9 @@ TEST $file
$env['CONTENT_TYPE']='';
$env['CONTENT_LENGTH']='';
if (!empty($section_text['ENV'])) {
foreach(explode("\n", $section_text['ENV']) as $e) {
$e = explode('=',trim($e));
if (count($e) == 2) {
$env[$e[0]] = $e[1];
}
foreach(explode("\n", trim($section_text['ENV'])) as $e) {
$e = explode('=',trim($e),2);
$env[$e[0]] = $e[1];
}
}