Skip to content

Commit

Permalink
Merge pull request #3287 from hnakamur/fix_modsecurity-regression-tes…
Browse files Browse the repository at this point in the history
…t-secremoterules.txt_url_in_example

Fix modsecurity-regression-test-secremoterules.txt URL in example
  • Loading branch information
airween authored Nov 6, 2024
2 parents 5bec188 + 42a4018 commit 4a72000
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/simple_example_using_c/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int main (int argc, char **argv)
msc_rules_dump(rules);

ret = msc_rules_add_remote(rules, "test",
"https://www.modsecurity.org/modsecurity-regression-test-secremoterules.txt",
"https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-rules.txt",
&error);
if (ret < 0) {
fprintf(stderr, "Problems loading the rules --\n");
Expand Down
2 changes: 1 addition & 1 deletion test/test-cases/regression/config-secremoterules.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"rules":[
"SecRuleEngine On",
"SecRemoteRules key https://gist.githubusercontent.com/martinhsv/20705a36b7cfa8ff6d0dee0d4efce7e7/raw/faa96c7838b1fe972c1f0881efacbb440f9a4a5e/modsecurity-regression-rules.txt",
"SecRemoteRules key https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-rules.txt",
"SecRule ARGS \"@contains somethingelse\" \"id:9,pass,t:trim\""
]
},
Expand Down
2 changes: 1 addition & 1 deletion test/test-cases/regression/operator-ipMatchFromFile.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
},
"rules":[
"SecRuleEngine On",
"SecRule REMOTE_ADDR \"@ipMatchFromFile https://gist.githubusercontent.com/martinhsv/20705a36b7cfa8ff6d0dee0d4efce7e7/raw/b9321f190eb0e81b98cb65a56db3d7e0a4f59314/modsecurity-regression-ip-list.txt\" \"id:1,phase:3,pass,t:trim\""
"SecRule REMOTE_ADDR \"@ipMatchFromFile https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-ip-list.txt\" \"id:1,phase:3,pass,t:trim\""
]
}
]

0 comments on commit 4a72000

Please sign in to comment.