mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
Update daap_api.class.php
This commit is contained in:
parent
eb6da495a8
commit
5842dcf9c8
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ class Daap_Api
|
||||||
$auth = $headers['Authorization'];
|
$auth = $headers['Authorization'];
|
||||||
if (strpos(strtolower($auth), 'basic') === 0) {
|
if (strpos(strtolower($auth), 'basic') === 0) {
|
||||||
$decauth = base64_decode(substr($auth, 6));
|
$decauth = base64_decode(substr($auth, 6));
|
||||||
$userpass = split(':', $decauth);
|
$userpass = explode(':', $decauth);
|
||||||
if (count($userpass) == 2) {
|
if (count($userpass) == 2) {
|
||||||
if ($userpass[1] == $pass) {
|
if ($userpass[1] == $pass) {
|
||||||
$authenticated = true;
|
$authenticated = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue