Files
EdgeAdmin/internal/web/helpers/utils_gcc.go

15 lines
412 B
Go
Raw Normal View History

2024-03-21 17:38:24 +08:00
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build gcc
package helpers
import (
"github.com/TeaOSLab/EdgeAdmin/internal/waf/injectionutils"
"net/http"
)
// filter request
func safeFilterRequest(req *http.Request) bool {
return !injectionutils.DetectXSS(req.RequestURI, false) && !injectionutils.DetectSQLInjection(req.RequestURI, false)
}