Core Rule Set tests: name repeated attack strings (closes #263)
check / check (push) Successful in 3m55s
check / check (push) Successful in 3m55s
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 is contained in:
1 parent
9aa5b303cf
commit
65d29acc59
3 files changed
+9
-6
No files matched your search
@@ -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}}
|
||||
|
||||
Reference in new issue
Block a user