changeset 32746:2372e26d24fe

Escape character values >= 127 in URLs as required by the RFC.
author reimar
date Sun, 30 Jan 2011 10:40:08 +0000
parents 64be018ebafa
children 170106dd2ef2
files stream/url.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/url.c	Sun Jan 30 10:38:10 2011 +0000
+++ b/stream/url.c	Sun Jan 30 10:40:08 2011 +0000
@@ -327,8 +327,7 @@
 
 		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'))) {