Skip to content

Commit 2f9f7cb

Browse files
vladakahornace
authored andcommitted
suppress path injection error
1 parent 3483672 commit 2f9f7cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opengrok-web/src/main/java/org/opengrok/web/util/FileUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private FileUtil() {
4646
* leads outside source root
4747
* @throws NoPathParameterException if the {@code path} parameter is null
4848
*/
49+
@SuppressWarnings("lgtm[java/path-injection]")
4950
public static File toFile(String path) throws NoPathParameterException, IOException {
5051
if (path == null) {
5152
throw new NoPathParameterException("Missing path parameter");

0 commit comments

Comments
 (0)