mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
Fix issue #1247
XML API version is now assumed to be the latest available if not specified as a parameter. Also fix the issue that an empty XML document was issued when the version was not specified. Closes issue #1247.
This commit is contained in:
parent
0842e288df
commit
17ae862596
1 changed files with 7 additions and 1 deletions
|
@ -135,7 +135,13 @@ class Api
|
|||
}
|
||||
$username = trim($input['user']);
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
if (isset($input['version'])) {
|
||||
// If version is provided, use it
|
||||
$version = $input['version'];
|
||||
} else {
|
||||
// Else, just use the latest version available
|
||||
$version = self::$version;
|
||||
}
|
||||
|
||||
// Log the attempt
|
||||
debug_event('API', "Handshake Attempt, IP:$ip User:$username Version:$version", 5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue