HOTFIX: security issue fixed

This commit is contained in:
Project_IO 2025-03-23 18:09:20 +09:00
parent e4c6332398
commit 0350cf4de9

View file

@ -28,7 +28,7 @@ func WorkerRoute(ctx *gin.Context) {
var target string var target string
var matches = false var matches = false
for _, dir := range dirs { for _, dir := range dirs {
if !strings.HasSuffix(ctx.Request.URL.Path, dir.DirName) { if !strings.Contains(ctx.Request.URL.Path, dir.DirName) {
continue continue
} }