fix base42 (2)
This commit is contained in:
parent
9141adfb5b
commit
38085291ea
@ -295,6 +295,7 @@ kaz::base64Decode (string &content) {
|
|||||||
if (!isBase64 (c)) {
|
if (!isBase64 (c)) {
|
||||||
content.resize (lastOK-content.begin ());
|
content.resize (lastOK-content.begin ());
|
||||||
LOG ("kazMisc::base64Decode bug: bad base64 format. (content: " << content << ")");
|
LOG ("kazMisc::base64Decode bug: bad base64 format. (content: " << content << ")");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
buff [idx] = getBase64Val (c);
|
buff [idx] = getBase64Val (c);
|
||||||
if (++idx != 4)
|
if (++idx != 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user