From 41466f15c1252dd953f5f958e505988cb15d4c71 Mon Sep 17 00:00:00 2001 From: "i.badamshin" Date: Fri, 1 Dec 2017 11:19:59 +0300 Subject: [PATCH] fix #40 --- src/PAGI/Client/AbstractClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {