summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-28 14:52:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-28 14:52:14 +0300
commite787987f54733bd58f69ced43a506aa7fc42fb7c (patch)
treef1759f29728074e256e70bbc56aeb7d306df76d9 /src/mir_core
parente6a42bce6b8fb4ddb69de1e62bf317689db876d0 (diff)
fixes #1797 (ICQ10: only images can be transferred)
Diffstat (limited to 'src/mir_core')
-rwxr-xr-xsrc/mir_core/src/http.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_core/src/http.cpp b/src/mir_core/src/http.cpp
index 5539eef58c..d1386e4519 100755
--- a/src/mir_core/src/http.cpp
+++ b/src/mir_core/src/http.cpp
@@ -53,8 +53,7 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl)
const BYTE *s;
int outputLen;
for (outputLen = 0, s = (const BYTE*)szUrl; *s; s++) {
- if ((*s & 0x80) ||
- ('0' <= *s && *s <= '9') || //0-9
+ if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz
*s == '-' || *s == '_' || *s == '.' || *s == ' ' || *s == '~')
@@ -69,8 +68,7 @@ MIR_CORE_DLL(char*) mir_urlEncode(const char *szUrl)
char *d = szOutput;
for (s = (const BYTE*)szUrl; *s; s++) {
- if ((*s & 0x80) ||
- ('0' <= *s && *s <= '9') || //0-9
+ if (('0' <= *s && *s <= '9') || //0-9
('A' <= *s && *s <= 'Z') || //ABC...XYZ
('a' <= *s && *s <= 'z') || //abc...xyz
*s == '-' || *s == '_' || *s == '.' || *s == '~')