cvs: php-src(PHP_5_3) /ext/standard url.c

From: Date: Wed, 04 Jun 2008 19:35:15 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard url.c
Groups: php.cvs php.doc 
Request: Send a blank email to php-cvs+get-50288@lists.php.net to get a copy of this message
rrichards Wed Jun 4 19:35:15 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard url.c Log: MFH: rawurlencode now conforms to rfc 3986 (~ is not encoded) [DOC] http://cvs.php.net/viewvc.cgi/php-src/ext/standard/url.c?r1=1.86.2.5.2.7.2.3&r2=1.86.2.5.2.7.2.4&diff_format=u Index: php-src/ext/standard/url.c diff -u php-src/ext/standard/url.c:1.86.2.5.2.7.2.3 php-src/ext/standard/url.c:1.86.2.5.2.7.2.4 --- php-src/ext/standard/url.c:1.86.2.5.2.7.2.3 Fri Mar 28 10:22:12 2008 +++ php-src/ext/standard/url.c Wed Jun 4 19:35:15 2008 @@ -15,7 +15,7 @@ | Author: Jim Winstead <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: url.c,v 1.86.2.5.2.7.2.3 2008/03/28 10:22:12 tony2001 Exp $ */ +/* $Id: url.c,v 1.86.2.5.2.7.2.4 2008/06/04 19:35:15 rrichards Exp $ */ #include <stdlib.h> #include <string.h> @@ -569,7 +569,7 @@ if ((str[y] < '0' && str[y] != '-' && str[y] != '.') || (str[y] < 'A' && str[y] > '9') || (str[y] > 'Z' && str[y] < 'a' && str[y] != '_') || - (str[y] > 'z')) { + (str[y] > 'z' && str[y] != '~')) { str[y++] = '%'; str[y++] = hexchars[(unsigned char) s[x] >> 4]; str[y] = hexchars[(unsigned char) s[x] & 15];

« previous php.cvs (#50288) next »