From c3e3de663319403f883fc2bfbe76c3065e2e85f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 15 Dec 2007 12:20:54 +0000 Subject: [PATCH] xspf: %-encode '%' and '+' for every URIs (it really should be URI type dependant). fix #1394 --- modules/misc/playlist/xspf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c index 27e1de68f1..e18c6ad70d 100644 --- a/modules/misc/playlist/xspf.c +++ b/modules/misc/playlist/xspf.c @@ -329,6 +329,8 @@ static char *assertUTF8URI( char *psz_name ) *psz_s == '>' || *psz_s == '&' || *psz_s == ' ' || + *psz_s == '+' || + *psz_s == '%' || ( b_uri_is_file && ( *psz_s == ':' || *psz_s == '"' || @@ -336,9 +338,7 @@ static char *assertUTF8URI( char *psz_name ) *psz_s == '#' || *psz_s == '[' || *psz_s == ']' || - *psz_s == '@' || - *psz_s == '+' || - *psz_s == '%' ) + *psz_s == '@' ) ) ) { -- 2.11.4.GIT