From 644d8842b6b8876caf09e42318f525384b1d835c Mon Sep 17 00:00:00 2001 From: dushixiang <798148596@qq.com> Date: Fri, 5 Mar 2021 22:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DURL=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E4=B8=8D=E4=B8=A5=E8=B0=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- pkg/api/middleware.go | 4 ++-- web/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 073802c..952730b 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ import ( "time" ) -const Version = "v0.3.0" +const Version = "v0.3.1" func main() { err := Run() diff --git a/pkg/api/middleware.go b/pkg/api/middleware.go index ffd9c4e..775b21c 100644 --- a/pkg/api/middleware.go +++ b/pkg/api/middleware.go @@ -30,8 +30,8 @@ func Auth(next echo.HandlerFunc) echo.HandlerFunc { startWithUrls := []string{"/login", "/static", "/favicon.ico", "/logo.svg", "/asciinema"} - download := regexp.MustCompile(`/sessions/\w{8}(-\w{4}){3}-\w{12}/download`) - recording := regexp.MustCompile(`/sessions/\w{8}(-\w{4}){3}-\w{12}/recording`) + download := regexp.MustCompile(`^/sessions/\w{8}(-\w{4}){3}-\w{12}/download`) + recording := regexp.MustCompile(`^/sessions/\w{8}(-\w{4}){3}-\w{12}/recording`) return func(c echo.Context) error { diff --git a/web/package.json b/web/package.json index 9759917..a3cb703 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "next-terminal", - "version": "0.3.0", + "version": "0.3.1", "private": true, "dependencies": { "@ant-design/icons": "^4.3.0",