--- /Base64.java	2023-07-05 03:12:40.170026673 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:12:40.174026674 +0200
@@ -410,7 +410,7 @@
             // this sizes the output array properly - rlw
             int lastData = base64Data.length;
             // ignore the '=' padding
-            while (base64Data[lastData - 1] == PAD) {
+while  ( base64Data[lastData - 1] != PAD )  {
                 if (--lastData == 0) {
                     return new byte[0];
                 }
