diff options
Diffstat (limited to 'src/mir_core')
-rwxr-xr-x[-rw-r--r--] | src/mir_core/src/http.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/http.cpp b/src/mir_core/src/http.cpp index 8105140c0b..fae3ece203 100644..100755 --- a/src/mir_core/src/http.cpp +++ b/src/mir_core/src/http.cpp @@ -32,7 +32,7 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl) if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz
- *s == '-' || *s == '_' || *s == '.' || *s == ' ') outputLen++;
+ *s == '-' || *s == '_' || *s == '.' || *s == ' ' || *s == '~') outputLen++;
else outputLen += 3;
}
@@ -45,7 +45,7 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl) if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz
- *s == '-' || *s == '_' || *s == '.') *d++ = *s;
+ *s == '-' || *s == '_' || *s == '.' || *s == '~') *d++ = *s;
else if (*s == ' ') *d++='+';
else {
*d++ = '%';
|