Skip to content

Commit

Permalink
fuck codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb committed Dec 31, 2024
1 parent 370e71a commit 2526110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dashboard/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (w *ginCustomWriter) WriteHeader(code int) {
}

func fileWithCustomStatusCode(c *gin.Context, filepath string, customCode int) {
http.ServeFile(newCustomWriter(c, customCode), c.Request, filepath)
http.ServeFile(newCustomWriter(c, customCode), c.Request, path.Clean(filepath))

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
.
}

func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
Expand Down

0 comments on commit 2526110

Please sign in to comment.