Skip to content

Commit

Permalink
fix missing regex in decoding content
Browse files Browse the repository at this point in the history
  • Loading branch information
mattebit committed Oct 20, 2023
1 parent c0b1344 commit c37317d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tool/src/main/java/migt/DecodeOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
import java.util.zip.Inflater;
Expand Down Expand Up @@ -482,7 +484,12 @@ public void execute(List<Var> vars) throws ParsingException {
return;
}
} else {
found = j;
Pattern pattern = Pattern.compile(decode_target);
Matcher matcher = pattern.matcher(j);
while (matcher.find()) {
found = matcher.group();
break;
}
}
decoded_content = decode(encodings, found, helpers);
break;
Expand Down

0 comments on commit c37317d

Please sign in to comment.