From 9141adfb5b12e0a63d50dfa3c7cbc06218827a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 28 Dec 2022 15:03:41 +0100 Subject: [PATCH] fix base64 --- src/bash/filter.sh | 0 src/bash/filterTest.sh | 0 src/cpp/eMailShrinker.cpp | 4 ++-- src/cpp/kazMisc.cpp | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/bash/filter.sh mode change 100644 => 100755 src/bash/filterTest.sh diff --git a/src/bash/filter.sh b/src/bash/filter.sh old mode 100644 new mode 100755 diff --git a/src/bash/filterTest.sh b/src/bash/filterTest.sh old mode 100644 new mode 100755 diff --git a/src/cpp/eMailShrinker.cpp b/src/cpp/eMailShrinker.cpp index cf76cd8..21a12a8 100644 --- a/src/cpp/eMailShrinker.cpp +++ b/src/cpp/eMailShrinker.cpp @@ -33,8 +33,8 @@ //////////////////////////////////////////////////////////////////////////// #include "version.hpp" -const std::string kaz::LAST_VERSION_NUM ("2.12"); -const std::string kaz::LAST_VERSION_DATE ("2022-12-27"); +const std::string kaz::LAST_VERSION_NUM ("2.13"); +const std::string kaz::LAST_VERSION_DATE ("2022-12-28"); const std::string kaz::LAST_VERSION (LAST_VERSION_NUM+" "+LAST_VERSION_DATE+" eMailShrinker"); #include diff --git a/src/cpp/kazMisc.cpp b/src/cpp/kazMisc.cpp index ff9cbfb..1fc1f97 100644 --- a/src/cpp/kazMisc.cpp +++ b/src/cpp/kazMisc.cpp @@ -292,7 +292,7 @@ kaz::base64Decode (string &content) { continue; } - if (isBase64 (c)) { + if (!isBase64 (c)) { content.resize (lastOK-content.begin ()); LOG ("kazMisc::base64Decode bug: bad base64 format. (content: " << content << ")"); }