修复模板注入问题
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
sprig "github.com/go-task/slim-sprig/v3"
|
||||
"net/http"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
sprig "github.com/go-task/slim-sprig/v3"
|
||||
)
|
||||
|
||||
func NewTemplateInject(r *http.Request, def map[string]any) map[string]any {
|
||||
|
||||
Reference in New Issue
Block a user