Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Sep 9, 2024
1 parent fb0c226 commit 04dda90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/htmx/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func RecordImageCopier(c echo.Context, debug *zap.SugaredLogger, dirs command.Di
if err != nil {
return badRequest(c, err)
}
if strings.Contains(path, "/") || strings.Contains(path, "\\") || strings.Contains(path, "..") {
if strings.Contains(name, "/") || strings.Contains(name, "\\") || strings.Contains(name, "..") {
return badRequest(c, ErrName)
}
unid := c.Param("unid")
Expand Down

0 comments on commit 04dda90

Please sign in to comment.