diff options
author | Felipe Pena <felipe@php.net> | 2010-11-07 12:59:22 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-11-07 12:59:22 +0000 |
commit | 83ebbc36a13203254ff9c4b74f3eed3775b05a72 (patch) | |
tree | f0a9e567719cb82f233d4883d2dcad79534b8761 /ext/standard/url.c | |
parent | 1c556f2030d5093e332b04a62bbff52fe8ce22dd (diff) | |
download | php-git-83ebbc36a13203254ff9c4b74f3eed3775b05a72.tar.gz |
- Fixed bug #53248 (rawurlencode RFC 3986 EBCDIC support misses tilde char).
patch by: Justin Martin (frozenfire@php)
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 dd99cb5301..ae9135075a 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -585,7 +585,7 @@ PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length) str[y++] = hexchars[(unsigned char) s[x] >> 4]; str[y] = hexchars[(unsigned char) s[x] & 15]; #else /*CHARSET_EBCDIC*/ - if (!isalnum(str[y]) && strchr("_-.", str[y]) != NULL) { + if (!isalnum(str[y]) && strchr("_-.~", str[y]) != NULL) { str[y++] = '%'; str[y++] = hexchars[os_toascii[(unsigned char) s[x]] >> 4]; str[y] = hexchars[os_toascii[(unsigned char) s[x]] & 15]; |