File "HttpAuthorization.php"
Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/intervention/httpauth/src/Token/HttpAuthorization.php
File size: 513 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Intervention\HttpAuth\Token;
class HttpAuthorization extends PhpAuthDigest
{
/**
* Parse environment variables and store value in object
*
* @return bool "true" if value was found or "false"
*/
protected function parse(): bool
{
$value = $this->getArrayValue($_SERVER, 'HTTP_AUTHORIZATION');
if (strtolower(substr($value, 0, 6)) === 'digest') {
$this->value = $value;
return true;
}
return false;
}
}