From 35793d49035696eb822168c3c8453c1d73078e7c Mon Sep 17 00:00:00 2001 From: weweewjwelekw <12625294+weweewjwelekw@user.noreply.gitee.com> Date: Thu, 16 Mar 2023 10:20:23 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=B7=AF=E5=BE=84=E7=A9=BF=E8=B6=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: weweewjwelekw <12625294+weweewjwelekw@user.noreply.gitee.com> --- server/http_upload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/http_upload.go b/server/http_upload.go index 0401983..b902196 100644 --- a/server/http_upload.go +++ b/server/http_upload.go @@ -170,6 +170,7 @@ func (c *Server) upload(w http.ResponseWriter, r *http.Request) { if Config().EnableCustomPath { fileInfo.Path = r.FormValue("path") fileInfo.Path = strings.Trim(fileInfo.Path, "/") + fileInfo.Path = strings.Replace(fileInfo.Path,"../","_",-1) } scene = r.FormValue("scene") code = r.FormValue("code") -- Gitee