1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Replace 'confirming filename' with 'conforming filename'

This commit is contained in:
Sascha L. Teichmann 2023-02-02 22:36:37 +01:00
parent b80163c35f
commit ffb29f5ba4
10 changed files with 22 additions and 22 deletions

View file

@ -47,8 +47,8 @@ func (c *controller) loadCSAF(r *http.Request) (string, []byte, error) {
return "", nil, errors.New("expected content type 'application/json'")
}
if !util.ConfirmingFileName(handler.Filename) {
return "", nil, errors.New("given csaf filename is not confirming")
if !util.ConformingFileName(handler.Filename) {
return "", nil, errors.New("given csaf filename is not conforming")
}
var buf bytes.Buffer

View file

@ -72,7 +72,7 @@ func (c *controller) bind(pim *pathInfoMux) {
pim.handleFunc("/api/create", c.auth(api(c.create)))
}
// authenticate checks if the incoming request confirms with the
// authenticate checks if the incoming request conforms with the
// configured authentication mechanism.
func (c *controller) authenticate(r *http.Request) bool {