From 9ab6d1d3736f58da50a1fe794573a018b80f218e Mon Sep 17 00:00:00 2001 From: unknown <924417424@qq.com> Date: Tue, 22 Nov 2022 17:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0unzip=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AF=BC=E8=87=B4=E7=9A=84=E5=9C=A8resourcePatchHandl?= =?UTF-8?q?er=E5=87=BD=E6=95=B0=E4=B8=AD=E8=BF=9B=E8=A1=8C=E5=85=B6?= =?UTF-8?q?=E5=AE=83=E6=93=8D=E4=BD=9C=E6=97=B6=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/resource.go b/http/resource.go index 783c0981..ef54edcd 100644 --- a/http/resource.go +++ b/http/resource.go @@ -192,7 +192,7 @@ func resourcePatchHandler(fileCache FileCache) handleFunc { if err != nil { return errToStatus(err), err } - if dst == "/" || src == "/" || action != "unzip" { + if (dst == "/" || src == "/") && action != "unzip" { return http.StatusForbidden, nil }