PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / intervention / httpauth / src / Token / HttpAuthorization.php

HttpAuthorization.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.7.0, at vendor/intervention/httpauth/src/Token/HttpAuthorization.php

24 lines 513 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Intervention\HttpAuth\Token;
4
5 class HttpAuthorization extends PhpAuthDigest
6 {
7 /**
8 * Parse environment variables and store value in object
9 *
10 * @return bool "true" if value was found or "false"
11 */
12 protected function parse(): bool
13 {
14 $value = $this->getArrayValue($_SERVER, 'HTTP_AUTHORIZATION');
15 if (strtolower(substr($value, 0, 6)) === 'digest') {
16 $this->value = $value;
17
18 return true;
19 }
20
21 return false;
22 }
23 }
24