Skip to content

Commit

Permalink
Removed greedy matching from a regex to address DOS concern.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Helma <[email protected]>
  • Loading branch information
chelma committed Sep 24, 2024
1 parent 92bee7f commit 77f8ab6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@Slf4j
public class InvalidResponse extends RfsException {
private static final Pattern unknownSetting = Pattern.compile("unknown setting \\[(.+)\\].+");
private static final Pattern unknownSetting = Pattern.compile("unknown setting \\[(.+?)\\].+");
private static final ObjectMapper objectMapper = new ObjectMapper();
private final HttpResponse response;

Expand Down

0 comments on commit 77f8ab6

Please sign in to comment.