Skip to content

Commit

Permalink
Fix double encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ServerAdmin committed Feb 3, 2012
1 parent 8274e6b commit a89902d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lastfm-played.php
Expand Up @@ -78,9 +78,9 @@ function showSong($item) {

// Exploding song data into variables
$info = explode(' – ',$item->get_title());
$artist= htmlentities($info[0]);
$song = htmlentities($info[1]);
$url = $item->get_link();
$artist = htmlentities($info[0], ENT_COMPAT, 'UTF-8', false);
$song = htmlentities($info[1], ENT_COMPAT, 'UTF-8', false);
$url = $item->get_link();
$played = date('m/d/Y h:i a', strtotime($item->get_date())+$this->config['gmt_offset']);

// Loading template and parsing template
Expand Down

0 comments on commit a89902d

Please sign in to comment.