diff options
author | momo-i <momo-i@ampache> | 2009-03-16 11:07:19 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2009-03-16 11:07:19 +0000 |
commit | 9e3413a59ccfbe88d2821ac637dfb25d690f2705 (patch) | |
tree | e71b7176f0a2be0974ab5626137f889d0aac31b6 /lib/class/artist.class.php | |
parent | 3d226380fee0e400a834705f89386fe95d180027 (diff) | |
download | ampache-9e3413a59ccfbe88d2821ac637dfb25d690f2705.tar.gz ampache-9e3413a59ccfbe88d2821ac637dfb25d690f2705.tar.bz2 ampache-9e3413a59ccfbe88d2821ac637dfb25d690f2705.zip |
Fixed: get lyrics wiki
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index ce7fe2f1..d4caf29f 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -359,8 +359,9 @@ class Artist extends database_object { return $sorry; } else { + $lyrics = str_replace(array("\r\n","\r","\n"), '<br />',strip_tags($result['lyrics'])); // since we got lyrics, might as well add them to the database now (for future use) - $sql = "UPDATE `song_data` SET `lyrics` = '" . htmlspecialchars(strip_tags(($result['lyrics'])), ENT_QUOTES) . "' WHERE `song_id`='" . Dba::escape($song_id) . "'"; + $sql = "UPDATE `song_data` SET `lyrics` = '" . htmlspecialchars($lyrics, ENT_QUOTES) . "' WHERE `song_id`='" . Dba::escape($song_id) . "'"; $db_results = Dba::write($sql); // display result (lyrics) debug_event("lyrics", "get successful", "5"); |