mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +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'];
|
||||
if (strpos(strtolower($auth), 'basic') === 0) {
|
||||
$decauth = base64_decode(substr($auth, 6));
|
||||
$userpass = split(':', $decauth);
|
||||
$userpass = explode(':', $decauth);
|
||||
if (count($userpass) == 2) {
|
||||
if ($userpass[1] == $pass) {
|
||||
$authenticated = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue