mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
Fix incorrect URL encoding.
Ilya Konstantinov <mplayer-dev-eng@future.shiny.co.il> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9925 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eb278efa62
commit
cb961f6600
@ -232,9 +232,9 @@ url_escape_string(char *outbuf, const char *inbuf) {
|
||||
unsigned char c1 = ((c & 0xf0) >> 4);
|
||||
unsigned char c2 = (c & 0x0f);
|
||||
if (c1 < 10) c1+='0';
|
||||
else c1+='A';
|
||||
else c1+='A'-10;
|
||||
if (c2 < 10) c2+='0';
|
||||
else c2+='A';
|
||||
else c2+='A'-10;
|
||||
*outbuf++ = '%';
|
||||
*outbuf++ = c1;
|
||||
*outbuf++ = c2;
|
||||
|
Loading…
Reference in New Issue
Block a user