From 5e60f46159057c8f572e2ba95b24c663f81db5b1 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Wed, 4 Jun 2008 19:35:15 +0000 Subject: [PATCH] MFH: rawurlencode now conforms to rfc 3986 (~ is not encoded) [DOC] --- ext/standard/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.50.1