mirror of https://github.com/status-im/consul.git
[Security] Close cross scripting vulnerability (#21342)
* close vulnerability * add changelog
This commit is contained in:
parent
7a19d2e7a4
commit
c18c911ac8
|
@ -0,0 +1,3 @@
|
|||
```release-note:security
|
||||
agent: removed reflected cross-site scripting vulnerability
|
||||
```
|
|
@ -293,7 +293,7 @@ func conflictingFlags(resp http.ResponseWriter, req *http.Request, flags ...stri
|
|||
if _, ok := params[conflict]; ok {
|
||||
if found {
|
||||
resp.WriteHeader(http.StatusBadRequest)
|
||||
fmt.Fprint(resp, "Conflicting flags: "+params.Encode())
|
||||
fmt.Fprintf(resp, "Conflicting flags: %v\n", params.Encode())
|
||||
return true
|
||||
}
|
||||
found = true
|
||||
|
|
Loading…
Reference in New Issue