mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
stream/url.c: escape characters >= 127 in URLs
Escape character values >= 127 in URLs as required by the RFC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32833 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
851bb3ce82
commit
005bbf0da4
@ -326,8 +326,7 @@ url_escape_string_part(char *outbuf, const char *inbuf) {
|
||||
|
||||
if( (c >= 'A' && c <= 'Z') ||
|
||||
(c >= 'a' && c <= 'z') ||
|
||||
(c >= '0' && c <= '9') ||
|
||||
(c >= 0x7f)) {
|
||||
(c >= '0' && c <= '9')) {
|
||||
*outbuf++ = c;
|
||||
} else if ( c=='%' && ((c1 >= '0' && c1 <= '9') || (c1 >= 'A' && c1 <= 'F')) &&
|
||||
((c2 >= '0' && c2 <= '9') || (c2 >= 'A' && c2 <= 'F'))) {
|
||||
|
Loading…
Reference in New Issue
Block a user