mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 14:20:25 +08:00
16 lines
416 B
Go
16 lines
416 B
Go
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cloud .
|
|
//go:build gcc
|
|
|
|
package helpers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/waf/injectionutils"
|
|
)
|
|
|
|
// filter request
|
|
func safeFilterRequest(req *http.Request) bool {
|
|
return !injectionutils.DetectXSS(req.RequestURI, false) && !injectionutils.DetectSQLInjection(req.RequestURI, false)
|
|
}
|