diff options
| author | Rob Richards <rrichards@php.net> | 2008-06-04 19:35:15 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2008-06-04 19:35:15 +0000 |
| commit | 5e60f46159057c8f572e2ba95b24c663f81db5b1 (patch) | |
| tree | 730fe4716a5c482b0c6c949530f3db5915162d88 /ext/standard/url.c | |
| parent | a1bbc5698c923ee19436ff58715464b3ff9cb241 (diff) | |
| download | php-git-5e60f46159057c8f572e2ba95b24c663f81db5b1.tar.gz | |
MFH: rawurlencode now conforms to rfc 3986 (~ is not encoded) [DOC]
Diffstat (limited to 'ext/standard/url.c')
| -rw-r--r-- | ext/standard/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 975d5be731..9dc8a2fe8b 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -569,7 +569,7 @@ PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length) 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]; |
