Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/ServerBag.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
66 | 66 |
67 if (null !== $authorizationHeader) { | 67 if (null !== $authorizationHeader) { |
68 if (0 === stripos($authorizationHeader, 'basic ')) { | 68 if (0 === stripos($authorizationHeader, 'basic ')) { |
69 // Decode AUTHORIZATION header into PHP_AUTH_USER and PHP_AUTH_PW when authorization header is basic | 69 // Decode AUTHORIZATION header into PHP_AUTH_USER and PHP_AUTH_PW when authorization header is basic |
70 $exploded = explode(':', base64_decode(substr($authorizationHeader, 6)), 2); | 70 $exploded = explode(':', base64_decode(substr($authorizationHeader, 6)), 2); |
71 if (count($exploded) == 2) { | 71 if (2 == count($exploded)) { |
72 list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded; | 72 list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded; |
73 } | 73 } |
74 } elseif (empty($this->parameters['PHP_AUTH_DIGEST']) && (0 === stripos($authorizationHeader, 'digest '))) { | 74 } elseif (empty($this->parameters['PHP_AUTH_DIGEST']) && (0 === stripos($authorizationHeader, 'digest '))) { |
75 // In some circumstances PHP_AUTH_DIGEST needs to be set | 75 // In some circumstances PHP_AUTH_DIGEST needs to be set |
76 $headers['PHP_AUTH_DIGEST'] = $authorizationHeader; | 76 $headers['PHP_AUTH_DIGEST'] = $authorizationHeader; |