From a62f3f2d3119b9e6b6187967e3a05443a7a164d1 Mon Sep 17 00:00:00 2001 From: Benny Date: Mon, 22 Apr 2024 20:24:36 +0200 Subject: [PATCH] also %2e --- handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/router.go b/handler/router.go index 30f7d91fc..afcc327d2 100644 --- a/handler/router.go +++ b/handler/router.go @@ -23,7 +23,7 @@ func Convert(c *fiber.Ctx) error { // 3. pass it to encoder, get the result, send it back // normal http request will start with / - if !strings.HasPrefix(c.Path(), "/") { + if strings.HasPrefix(c.Path(), ".") || strings.HasPrefix(c.Path(), "%2e") { _ = c.SendStatus(http.StatusBadRequest) return nil }