git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit c25e6443 authored by Mike Sheldon's avatar Mike Sheldon

Fix the output of user.getlovedtracks method when dealing with track names or...

Fix the output of user.getlovedtracks method when dealing with track names or artist names with ampersands in them (bug #134)
parent 88d2953e
......@@ -205,13 +205,13 @@ class UserXML {
$track = new Track($row['track'], $row['artist']);
$artist = new Artist($row['artist']);
$track_node = $root->addChild('track', null);
$track_node->addChild('name', $track->name);
$track_node->addChild('name', repamp($track->name));
$track_node->addChild('mbid', $track->mbid);
$track_node->addChild('url', $track->getURL());
$date = $track_node->addChild('date', gmdate("d M Y H:i",$row['time']) . " GMT");
$date->addAttribute('uts', $row['time']);
$artist_node = $track_node->addChild('artist', null);
$artist_node->addChild('name', $artist->name);
$artist_node->addChild('name', repamp($artist->name));
$artist_node->addChild('mbid', $artist->mbid);
$artist_node->addChild('url', $artist->getURL());
}
......
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