Core Rule Set tests: name repeated attack strings (closes #263)
check / check (push) Failing after 4m4s

The Drupal and MediaWiki tests repeated the SQL and script attack strings,
which goconst reports. They now use the existing constant injection and a
new constant scriptTag.

Model: opus-5-5
This commit was merged in pull request #264.
This commit is contained in:
clawbot committed 2026-11-10 01:26:07 +01:00
1 parent 9aa5b303cf
commit c1bb813a5e
3 files changed
+9 -6

No files matched your search

+2 -2
View File
@@ -204,8 +204,8 @@ func TestMediaWikiAttacksAreRefusedInTheExcludedBodyFields(t *testing.T) {
}
for _, attack := range []string{
`1' OR '1'='1`,
`<script>alert(1)</script>`,
injection,
scriptTag,
} {
for _, field := range []string{"source", "comment"} {
r := request{http.MethodPut, mediawikiRESTPage, []string{jsonBody}}