File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec/net Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,10 +118,10 @@ protected String decodeText(final String text)
118118 if ((!text .startsWith (PREFIX )) || (!text .endsWith (POSTFIX ))) {
119119 throw new DecoderException ("RFC 1522 violation: malformed encoded content" );
120120 }
121- int termnator = text .length () - 2 ;
121+ int terminator = text .length () - 2 ;
122122 int from = 2 ;
123123 int to = text .indexOf (SEP , from );
124- if (to == termnator ) {
124+ if (to == terminator ) {
125125 throw new DecoderException ("RFC 1522 violation: charset token not found" );
126126 }
127127 String charset = text .substring (from , to );
@@ -130,7 +130,7 @@ protected String decodeText(final String text)
130130 }
131131 from = to + 1 ;
132132 to = text .indexOf (SEP , from );
133- if (to == termnator ) {
133+ if (to == terminator ) {
134134 throw new DecoderException ("RFC 1522 violation: encoding token not found" );
135135 }
136136 String encoding = text .substring (from , to );
You can’t perform that action at this time.
0 commit comments