Commit a3053eb8 authored by Christophe Massiot's avatar Christophe Massiot

* include/network.h:vlc_UrlEncode() : though RFC 1738 allows to send

   $-_.+!*'(), unencoded, it also allows to encode any character. It is
   generally considered a good practive to urlencode $+!*'() because
   some buggy browsers (read: M$) have a problem with those characters.
   See the comments in http://fr.php.net/manual/en/function.rawurlencode.php
   for more information.
parent 28480679
...@@ -217,8 +217,8 @@ static inline int isurlsafe( int c ) ...@@ -217,8 +217,8 @@ static inline int isurlsafe( int c )
{ {
return ( (unsigned char)( c - 'a' ) < 26 ) return ( (unsigned char)( c - 'a' ) < 26 )
|| ( (unsigned char)( c - 'A' ) < 26 ) || ( (unsigned char)( c - 'A' ) < 26 )
|| ( (unsigned char)( c - '9' ) < 10 ) || ( (unsigned char)( c - '0' ) < 10 )
|| ( strchr( "$-_.+!*'(),", c ) != NULL ); || ( strchr( "-_.", c ) != NULL );
} }
/***************************************************************************** /*****************************************************************************
......
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