0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

'%' is unsafe and need to be escaped.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12154 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2004-04-07 20:35:41 +00:00
parent 1dc94dd7bd
commit e818336e6c

View File

@ -231,7 +231,7 @@ url_escape_string(char *outbuf, const char *inbuf) {
(c >= '0' && c <= '9') ||
(c >= 0x7f) || /* fareast languages(Chinese, Korean, Japanese) */
c=='-' || c=='_' || c=='.' || c=='!' || c=='~' || /* mark characters */
c=='*' || c=='\'' || c=='(' || c==')' || c=='%' || /* do not touch escape character */
c=='*' || c=='\'' || c=='(' || c==')' || /* do not touch escape character */
c==';' || c=='/' || c=='?' || c==':' || c=='@' || /* reserved characters */
c=='&' || c=='=' || c=='+' || c=='$' || c==',' || /* see RFC 2396 */
c=='\0' ) {