Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: If8085dc00db196eb51b6f14b4f4bac7c37dab249
This commit is contained in:
parent
25ecb6f627
commit
e665ecfc32
@ -212,9 +212,11 @@ namespace URLEncoder
|
||||
std::string result;
|
||||
for (char c : rIn)
|
||||
{
|
||||
if (isalnum (c) || strchr (good, c))
|
||||
if (rtl::isAsciiAlphanumeric (static_cast<unsigned char>(c))
|
||||
|| strchr (good, c))
|
||||
{
|
||||
result += c;
|
||||
else {
|
||||
} else {
|
||||
result += '%';
|
||||
result += hex[static_cast<unsigned char>(c) >> 4];
|
||||
result += hex[c & 0xf];
|
||||
|
Loading…
x
Reference in New Issue
Block a user