编译脚本支持GCC

This commit is contained in:
刘祥超
2024-03-18 15:59:29 +08:00
parent bce8176866
commit 797abbd4e6
8 changed files with 74 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !gcc
package injectionutils
const MaxCacheDataSize = 1 << 20
func DetectXSSCache(input string, isStrict bool, cacheLife int) bool {
// stub
return false
}
// DetectXSS detect XSS in string
func DetectXSS(input string, isStrict bool) bool {
// stub
return false
}
func detectXSSOne(input string, isStrict bool) bool {
// stub
return false
}