We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit cb8b2eaf authored by Mike Sheldon's avatar Mike Sheldon

Fix xml parsing of callback requests

parent 938ca671
......@@ -32,7 +32,7 @@ if($_GET['token'] && $_GET['webservice_url'] && $logged_in == true) {
$xmlresponse = simplexml_load_file($webservice_url . '?method=auth.getSession&token=' . $token . '&api_key=' . $lastfm_key . '&api_sig=' . $sig);
foreach($xmlresponse->children() as $child => $value) {
if($child == 'session') {
foreach($child->children() as $child2 => $value2) {
foreach($value->children() as $child2 => $value2) {
if($child2 == 'name') {
$remote_username = $value;
} elseif($child2 == 'key') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment