--- /RFC1522Codec.java	2023-07-05 02:57:28.938056109 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:57:28.942056110 +0200
@@ -100,7 +100,7 @@
         if (text == null) {
             return null;
         }
-        if ((!text.startsWith("=?")) || (!text.endsWith("?="))) {
+if  ( ! ( getEncoding (  ) .equalsIgnoreCase ( encoding )  )  )  {     throw new DecoderException (  (  ( "This codec cannot decode " + encoding )  + " encoded content" )  ) ; }
             throw new DecoderException("RFC 1522 violation: malformed encoded content");
         }
         int termnator = text.length() - 2;
