diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-28 08:56:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-28 08:57:28 +0200 |
commit | 7f698c89346acb5e5116736d25325a046652ba81 (patch) | |
tree | 31f82eff1f17b7bf53581583f6d856bf551036dd /markup/rst/convert_test.go | |
parent | fa0e16f4c79a703d122f1e3a3a99f4b779aea9b2 (diff) |
Don't panic on invalid security whitelist regexp
Fixes #11176
Diffstat (limited to 'markup/rst/convert_test.go')
-rw-r--r-- | markup/rst/convert_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markup/rst/convert_test.go b/markup/rst/convert_test.go index 9e98d0405..1897e650f 100644 --- a/markup/rst/convert_test.go +++ b/markup/rst/convert_test.go @@ -31,7 +31,7 @@ func TestConvert(t *testing.T) { } c := qt.New(t) sc := security.DefaultConfig - sc.Exec.Allow = security.NewWhitelist("rst", "python") + sc.Exec.Allow = security.MustNewWhitelist("rst", "python") p, err := Provider.New( converter.ProviderConfig{ |