Annotations: Deny newlines. (#12666)
Co-authored-by: James Strong <strong.james.e@gmail.com>
This commit is contained in:
parent
ea603be526
commit
6d97ff409e
2 changed files with 11 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ func TestValidateArrayOfServerName(t *testing.T) {
|
|||
value: "something.com,lolo;xpto.com,nothing.com",
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "should deny names with malicous chars",
|
||||
value: "http://something.com/#;\nournewinjection",
|
||||
wantErr: true,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue