File "RedirectHttpAuthorization.php"
Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/intervention/httpauth/src/Token/RedirectHttpAuthorization.php
File size: 536 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Intervention\HttpAuth\Token;
class RedirectHttpAuthorization extends HttpAuthentification
{
/**
* 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, 'REDIRECT_HTTP_AUTHORIZATION');
if (strtolower(substr($value, 0, 5)) === 'basic') {
$this->value = $value;
return true;
}
return false;
}
}