Skip to content

Commit

Permalink
Logpresso Log4j2 Scanner version 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nedjitef committed Dec 22, 2021
1 parent e73612c commit 5029ea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions log4j-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.inett</groupId>
<artifactId>log4j-scanner</artifactId>
<version>2.4.1</version>
<version>2.5.3</version>
<packaging>jar</packaging>
<name>CMK wrapper for Logpresso Log4j2 Scanner</name>

Expand Down Expand Up @@ -117,7 +117,7 @@
<dependency>
<groupId>com.github.logpresso</groupId>
<artifactId>CVE-2021-44228-Scanner</artifactId>
<version>${project.version}</version>
<version>2.5.3</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void run(String[] args) throws Exception {
metrics.setAccessible(true);
metrics.set(this, new Metrics());

run();
scanAndFix();
}

private static String[] prepareArguments(String[] cargs) {
Expand All @@ -54,10 +54,12 @@ private static String[] prepareArguments(String[] cargs) {
default:
List<String> t_args = new LinkedList<>();
t_args.add("--scan-zip");
t_args.add("--scan-log4j1");
t_args.add("--scan-logback");
for (String arg : cargs) {
if ( ! (
arg.equals("--scan-zip")
|| arg.equals("--scan-log4j1")
|| arg.equals("--scan-logback")
)) {
t_args.add(arg);
Expand Down

0 comments on commit 5029ea4

Please sign in to comment.