Commit c3e3de66 authored by Rafaël Carré's avatar Rafaël Carré

xspf: %-encode '%' and '+' for every URIs (it really should be URI type dependant). fix #1394

parent 7ef77fcb
...@@ -329,6 +329,8 @@ static char *assertUTF8URI( char *psz_name ) ...@@ -329,6 +329,8 @@ static char *assertUTF8URI( char *psz_name )
*psz_s == '>' || *psz_s == '>' ||
*psz_s == '&' || *psz_s == '&' ||
*psz_s == ' ' || *psz_s == ' ' ||
*psz_s == '+' ||
*psz_s == '%' ||
( b_uri_is_file && ( ( b_uri_is_file && (
*psz_s == ':' || *psz_s == ':' ||
*psz_s == '"' || *psz_s == '"' ||
...@@ -336,9 +338,7 @@ static char *assertUTF8URI( char *psz_name ) ...@@ -336,9 +338,7 @@ static char *assertUTF8URI( char *psz_name )
*psz_s == '#' || *psz_s == '#' ||
*psz_s == '[' || *psz_s == '[' ||
*psz_s == ']' || *psz_s == ']' ||
*psz_s == '@' || *psz_s == '@' )
*psz_s == '+' ||
*psz_s == '%' )
) )
) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment