Update url_raw_encode() to ignore '~' characters

Per Bug#53248, tilde characters should
not be encoded.
Esse commit está contido em:
Sara Golemon
2013-07-11 13:05:47 -07:00
commit a2139988d0
3 arquivos alterados com 1 adições e 1 exclusões
+1 -1
Ver Arquivo
@@ -439,7 +439,7 @@ char *url_raw_encode(const char *s, int &len) {
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];