From 9a0f4392da69f05b09292c2f18f86f5ea86d1e29 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 10 Jan 2014 16:11:45 +0000 Subject: [PATCH] Trim whitepsace from each argument --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 26b2774c9..890bd5aad 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -154,7 +154,7 @@ class RemoteFilesystem if ($key = array_search('X-GitHub-OTP', $headerNames)) { $headers = $e->getHeaders(); - list($required, $method) = explode(';', trim(substr(strstr($headers[$key], ':'), 1))); + list($required, $method) = array_map('trim', explode(';', substr(strstr($headers[$key], ':'), 1))); if ('required' === $required) { $this->io->write('Two-factor Authentication');