]> git.sesse.net Git - vlc/commitdiff
xspf: %-encode '%' and '+' for every URIs (it really should be URI type dependant...
authorRafaël Carré <funman@videolan.org>
Sat, 15 Dec 2007 12:20:54 +0000 (12:20 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 15 Dec 2007 12:20:54 +0000 (12:20 +0000)
modules/misc/playlist/xspf.c

index 27e1de68f1f2b5a89ec3bac1f18193e49757fe90..e18c6ad70d0162d29f300e7ad7baa955f2af51e9 100644 (file)
@@ -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 == '@' )
             )
           )
         {