We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95e354 commit 698bc2fCopy full SHA for 698bc2f
xml/xml_serialize.cpp
@@ -149,11 +149,23 @@ void SeeIfBase64 (CString & strText)
149
bool bBase64 = true;
150
int iCount;
151
152
+ // locale-independent tests (see decodeBase64)
153
for (iCount = 0 ; c = *p; p++)
- if (isspace (c))
154
+ if (c == ' ' ||
155
+ c == '\t' ||
156
+ c == '\n' ||
157
+ c == '\r' ||
158
+ c == '\f' ||
159
+ c == '\v'
160
+ )
161
continue;
162
else
- if (isalnum (c) || c == '+' || c == '/' || c == '=')
163
+ if ((c >= 'A' && c <= 'Z') ||
164
+ (c >= 'a' && c <= 'z') ||
165
+ (c >= '0' && c <= '9') ||
166
+ c == '+' ||
167
+ c == '/' ||
168
+ c == '=')
169
iCount++;
170
171
{
0 commit comments