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

16 lines
416 B
Go
Raw Normal View History

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