summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-11-07 12:59:22 +0000
committerFelipe Pena <felipe@php.net>2010-11-07 12:59:22 +0000
commit83ebbc36a13203254ff9c4b74f3eed3775b05a72 (patch)
treef0a9e567719cb82f233d4883d2dcad79534b8761 /ext/standard/url.c
parent1c556f2030d5093e332b04a62bbff52fe8ce22dd (diff)
downloadphp-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.c2
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];