Skip to content

Commit

Permalink
#2930 fixed high pool priority and database termination sequence: cor…
Browse files Browse the repository at this point in the history
…rected Common.java;
  • Loading branch information
Limraj committed Nov 25, 2024
1 parent 43364f3 commit a0030c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/serotonin/mango/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.ParseException;
Expand Down Expand Up @@ -355,7 +356,7 @@ public static String getFiledataPath() {
name = ctx.getServletContext().getRealPath(name.substring(1));

File file = new File(name);
if (!file.exists())
if (Files.notExists(file.toPath()))

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
file.mkdirs();

lazyFiledataPath = name;
Expand Down

0 comments on commit a0030c1

Please sign in to comment.