diff --git a/src/PAGI/Client/AbstractClient.php b/src/PAGI/Client/AbstractClient.php index 548e803..ebe79b4 100644 --- a/src/PAGI/Client/AbstractClient.php +++ b/src/PAGI/Client/AbstractClient.php @@ -720,7 +720,7 @@ protected function isEndOfEnvironmentVariables($line) */ protected function readEnvironmentVariable($line) { - list($key, $value) = explode(':', substr($line, 4), 2); + list($key, $value) = array_map('trim', explode(':', substr($line, 4), 2)); if (strncmp($key, 'arg_', 4) === 0) { $this->arguments[substr($key, 4)] = $value; } else {