1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Update daap_api.class.php

This commit is contained in:
Jahak 2016-03-21 21:36:18 +05:00
parent eb6da495a8
commit 5842dcf9c8

View file

@ -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;