From edff9427d9b185d5c5e985650055044dcd49f9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman@videolan.org> Date: Wed, 29 Aug 2007 23:52:55 +0000 Subject: [PATCH] Replaces xml special chars in image url --- modules/misc/playlist/xspf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c index c55ace4880fa..130b6421c483 100644 --- a/modules/misc/playlist/xspf.c +++ b/modules/misc/playlist/xspf.c @@ -212,11 +212,14 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file, free( psz_temp ); psz = input_item_GetArtURL( p_item->p_input ); - if( !EMPTY_STR( psz ) ) + if( psz == NULL ) psz = strdup( "" ); + psz_temp = convert_xml_special_chars( psz ); + free( psz ); + if( !EMPTY_STR( psz_temp ) ) { - fprintf( p_file, "\t\t\t<image>%s</image>\n", psz ); + fprintf( p_file, "\t\t\t<image>%s</image>\n", psz_temp ); } - free( psz ); + free( psz_temp ); xspfexportitem_end: /* -> the duration */ -- GitLab