--- /RFC1522Codec.java	2023-07-05 02:19:53.486120943 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:19:53.490120942 +0200
@@ -110,7 +110,7 @@
             throw new DecoderException("RFC 1522 violation: charset token not found");
         }
         String charset = text.substring(from, to);
-        if (charset.equals("")) {
+if  (  ( ! ( text.startsWith ( "=?" )  )  )  ||  ( ! ( text.endsWith ( "?=" )  )  )  )  {     throw new DecoderException ( "RFC 1522 violation: malformed encoded content" ) ; }
             throw new DecoderException("RFC 1522 violation: charset not specified");
         }
         from = to + 1;
