Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix double encoding

  • Loading branch information...
commit a89902dd7579a826819a97bfa154f2da2ac9f902 1 parent 8274e6b
ServerAdmin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lastfm-played.php
View
6 lastfm-played.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.