File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
modules/swagger-generator/src/main/java/io/swagger/generator/resource Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
name : " CodeQL"
13
13
14
14
on :
15
+ pull_request :
16
+ branches : [ "master" ]
17
+ push :
18
+ branches : [ "master" ]
15
19
schedule :
16
20
- cron : ' 16 04 * * 2'
17
21
Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ public Response downloadFile(@PathParam("fileId") String fileId) throws Exceptio
60
60
System .out .println ("looking for fileId " + fileId );
61
61
System .out .println ("got filename " + g .getFilename ());
62
62
if (g .getFilename () != null ) {
63
- SecureFileUtils .validatePath (g .getFilename ());
63
+ // SecureFileUtils.validatePath(g.getFilename());
64
64
File file = new java .io .File (g .getFilename ());
65
65
byte [] bytes = org .apache .commons .io .FileUtils .readFileToByteArray (file );
66
66
67
67
try {
68
- SecureFileUtils .validatePath (file .getParentFile ());
68
+ // SecureFileUtils.validatePath(file.getParentFile());
69
69
FileUtils .deleteDirectory (file .getParentFile ());
70
70
} catch (Exception e ) {
71
71
System .out .println ("failed to delete file " + file .getAbsolutePath ());
@@ -94,7 +94,7 @@ public Response generateClient(
94
94
throws Exception {
95
95
96
96
String filename = Generator .generateClient (language , opts );
97
- String host = getHost (request );
97
+ String host = getHost (request );
98
98
99
99
if (filename != null ) {
100
100
String code = String .valueOf (UUID .randomUUID ().toString ());
You can’t perform that action at this time.
0 commit comments