Permalink
Browse files

Fix double encoding

  • Loading branch information...
1 parent 8274e6b commit a89902dd7579a826819a97bfa154f2da2ac9f902 ServerAdmin committed Feb 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lastfm-played.php
View
@@ -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

0 comments on commit a89902d

Please sign in to comment.