1
0
Fork 0

Trim whitepsace from each argument

pull/2577/head
Chris Smith 2014-01-10 16:11:45 +00:00
parent 360df90ba5
commit 9a0f4392da
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class RemoteFilesystem
if ($key = array_search('X-GitHub-OTP', $headerNames)) { if ($key = array_search('X-GitHub-OTP', $headerNames)) {
$headers = $e->getHeaders(); $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) { if ('required' === $required) {
$this->io->write('Two-factor Authentication'); $this->io->write('Two-factor Authentication');