cvs: php-src /ext/standard url.c
| From: | Rob Richards | Date: | Wed, 04 Jun 2008 19:34:45 +0000 |
| Subject: | cvs: php-src /ext/standard url.c | ||
| Groups: | php.cvs php.doc | ||
| Request: | Send a blank email to php-cvs+get-50287@lists.php.net to get a copy of this message | ||
rrichards Wed Jun 4 19:34:45 2008 UTC
Modified files:
/php-src/ext/standard url.c
Log:
rawurlencode now conforms to rfc 3986 (~ is not encoded) [DOC]
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/url.c?r1=1.107&r2=1.108&diff_format=u
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.107 php-src/ext/standard/url.c:1.108
--- php-src/ext/standard/url.c:1.107 Mon Dec 31 07:12:16 2007
+++ php-src/ext/standard/url.c Wed Jun 4 19:34:45 2008
@@ -15,7 +15,7 @@
| Author: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.107 2007/12/31 07:12:16 sebastian Exp $ */
+/* $Id: url.c,v 1.108 2008/06/04 19:34:45 rrichards Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -647,7 +647,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];