mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
parent
c57de75dac
commit
54465b54ad
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
|
||||||
// Extract real TLP from document.
|
// Extract real TLP from document.
|
||||||
if t == tlpCSAF {
|
if t == tlpCSAF {
|
||||||
if t = tlp(strings.ToLower(ex.tlpLabel)); !t.valid() || t == tlpCSAF {
|
if t = tlp(strings.ToLower(ex.tlpLabel)); !t.valid() || t == tlpCSAF {
|
||||||
return nil, fmt.Errorf("not a valid TL: %s", ex.tlpLabel)
|
return nil, fmt.Errorf("TLP label missing in the document")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue