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:
reimar 2011-01-30 10:40:08 +00:00 committed by Uoti Urpala
parent 851bb3ce82
commit 005bbf0da4
1 changed files with 1 additions and 2 deletions

View File

@ -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'))) {