mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
[Security] Close cross scripting vulnerability (#21342)
* close vulnerability * add changelog
This commit is contained in:
parent
7a19d2e7a4
commit
c18c911ac8
3
.changelog/21342.txt
Normal file
3
.changelog/21342.txt
Normal file
@ -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…
x
Reference in New Issue
Block a user