changeset 2225:6b45e6441fd9

fix from Andrew O. Shadoura (chrome|debian)
author Tomasz Mon <desowin@gmail.com>
date Wed, 12 Dec 2007 19:37:42 +0100
parents 58c69f2f2b60
children cb9802386cda
files src/scrobbler/scrobbler.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/scrobbler/scrobbler.c	Wed Dec 12 17:43:57 2007 +0300
+++ b/src/scrobbler/scrobbler.c	Wed Dec 12 19:37:42 2007 +0100
@@ -674,9 +674,9 @@
 	/*cfa(&post, &last, "debug", "failed");*/
 
 	entry = g_strdup_printf("s=%s&a=%s&t=%s&b=%s&l=%d&n=%d&m=", sc_session_id,
-		aud_tuple_get_string(tuple, FIELD_ARTIST, NULL),
-		aud_tuple_get_string(tuple, FIELD_TITLE, NULL),
-		aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) ? aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) : "",
+		fmt_escape(aud_tuple_get_string(tuple, FIELD_ARTIST, NULL)),
+		fmt_escape(aud_tuple_get_string(tuple, FIELD_TITLE, NULL)),
+		aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) ? fmt_escape(aud_tuple_get_string(tuple, FIELD_ALBUM, NULL)) : "",
 		aud_tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000,
 		aud_tuple_get_int(tuple, FIELD_TRACK_NUMBER, NULL));