From 04dda90292be0cd843a0b85afd3db579643c3725 Mon Sep 17 00:00:00 2001 From: Code by Ben Date: Mon, 9 Sep 2024 13:14:36 +1000 Subject: [PATCH] typo --- handler/htmx/artifact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/htmx/artifact.go b/handler/htmx/artifact.go index 3f885254..b75eedf5 100644 --- a/handler/htmx/artifact.go +++ b/handler/htmx/artifact.go @@ -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")