frontend: disable escaping of special HTML chars for BGPMap graph

This commit is contained in:
Lan Tian
2024-07-01 21:16:43 -07:00
parent f0f072c4a6
commit 0dd1c07b66
2 changed files with 8 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ func TestBirdRouteToGraphvizXSS(t *testing.T) {
fakeResult,
}, fakeResult)
if strings.Contains(result, "<script>") {
if strings.Contains(result, fakeResult) {
t.Errorf("XSS injection succeeded: %s", result)
}
}