Skip to content

Commit

Permalink
security warning suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
oboehm committed Feb 13, 2020
1 parent 5d296d9 commit e8ead03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/main/java/gdv/xport/util/URLReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ public String read() throws IOException {
}
}

@SuppressWarnings("javasecurity:S2083")
private String readFile() throws IOException {
File file = new File(url);
if (file.toString().contains("..")) {
throw new IllegalArgumentException("strange filename detected: " + file);
}
return FileUtils.readFileToString(file, Config.DEFAULT_ENCODING);
}

Expand Down

0 comments on commit e8ead03

Please sign in to comment.