mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Fix out-of-index issue in rewrite plugin (#5462)
This PR fixes another out-of-index issue in rewrite to avoid security vuln. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -33,6 +33,7 @@ func TestParse(t *testing.T) {
|
||||
name regex foo bar
|
||||
}`, true, "must begin with a name rule"},
|
||||
{`rewrite stop`, true, ""},
|
||||
{`rewrite continue`, true, ""},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user