summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_libstr.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-24 17:27:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-24 17:27:34 +0000
commit5b6f2daa070dff9998af4259daa3926cb70bb817 (patch)
treedaf84f3668e9de0dd2b29d60859d596475b29064 /protocols/MSN/src/msn_libstr.cpp
parent26c78a6a63f3fd7bc2f3179df04615ebbd49eb8f (diff)
- custom UrlEncode replaced with the core function;
- fix for opening Hotmail Inbox in a browser; - end of strange buffers; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@6976 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_libstr.cpp')
-rw-r--r--protocols/MSN/src/msn_libstr.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/protocols/MSN/src/msn_libstr.cpp b/protocols/MSN/src/msn_libstr.cpp
index 8067341faa..7a9c07a2b2 100644
--- a/protocols/MSN/src/msn_libstr.cpp
+++ b/protocols/MSN/src/msn_libstr.cpp
@@ -229,35 +229,6 @@ char* HtmlEncode(const char* str)
}
/////////////////////////////////////////////////////////////////////////////////////////
-// UrlEncode - converts printable characters into URL chars like %20
-
-void UrlEncode(const char* src, char* dest, size_t cbDest)
-{
- unsigned char* d = (unsigned char*)dest;
- size_t i = 0;
-
- for (const unsigned char* s = (unsigned char*)src; *s; s++)
- {
- if ((*s <= '/' && *s != '.' && *s != '-') ||
- (*s >= ':' && *s <= '?') ||
- (*s >= '[' && *s <= '`' && *s != '_'))
- {
- if (i + 4 >= cbDest) break;
-
- *d++ = '%';
- _itoa(*s, (char*)d, 16);
- d += 2;
- i += 3;
- }
- else
- {
- if (++i >= cbDest) break;
- *d++ = *s;
- } }
-
- *d = '\0';
-}
-
void stripBBCode(char* src)
{