[MPlayer-cvslog] r32833 - trunk/stream/url.c

reimar subversion at mplayerhq.hu
Sun Jan 30 11:40:08 CET 2011


Author: reimar
Date: Sun Jan 30 11:40:08 2011
New Revision: 32833

Log:
Escape character values >= 127 in URLs as required by the RFC.

Modified:
   trunk/stream/url.c

Modified: trunk/stream/url.c
==============================================================================
--- trunk/stream/url.c	Sun Jan 30 11:38:10 2011	(r32832)
+++ trunk/stream/url.c	Sun Jan 30 11:40:08 2011	(r32833)
@@ -327,8 +327,7 @@ url_escape_string_part(char *outbuf, con
 
 		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'))) {


More information about the MPlayer-cvslog mailing list