Skip to content

Commit dc07cd3

Browse files
committed
chore: apply review suggestions
1 parent dee4228 commit dc07cd3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: plugins/wordpress-rule-exclusions-before.conf

+14
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,22 @@ SecRule REQUEST_FILENAME "@unconditionalMatch" \
508508
pass,\
509509
t:none,\
510510
nolog,\
511+
ctl:ruleRemoveTargetById=920273;ARGS:_wp_original_http_referer,\
512+
ctl:ruleRemoveTargetById=931130;ARGS:_wp_original_http_referer,\
511513
ctl:ruleRemoveTargetById=932235;ARGS:_wp_original_http_referer,\
514+
ctl:ruleRemoveTargetById=932236;ARGS:_wp_original_http_referer,\
515+
ctl:ruleRemoveTargetById=942120;ARGS:_wp_original_http_referer,\
516+
ctl:ruleRemoveTargetById=942430;ARGS:_wp_original_http_referer,\
517+
ctl:ruleRemoveTargetById=942431;ARGS:_wp_original_http_referer,\
518+
ctl:ruleRemoveTargetById=942432;ARGS:_wp_original_http_referer,\
519+
ctl:ruleRemoveTargetById=920273;ARGS:referredby,\
520+
ctl:ruleRemoveTargetById=931130;ARGS:referredby,\
512521
ctl:ruleRemoveTargetById=932235;ARGS:referredby,\
522+
ctl:ruleRemoveTargetById=932236;ARGS:referredby,\
523+
ctl:ruleRemoveTargetById=942120;ARGS:referredby,\
524+
ctl:ruleRemoveTargetById=942430;ARGS:referredby,\
525+
ctl:ruleRemoveTargetById=942431;ARGS:referredby,\
526+
ctl:ruleRemoveTargetById=942432;ARGS:referredby,\
513527
ver:'wordpress-rule-exclusions-plugin/1.0.1'"
514528

515529

Diff for: tests/regression/wordpress-rule-exclusions-plugin/9507355.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tests:
1919
method: GET
2020
version: "HTTP/1.1"
2121
uri: /wp-admin/post.php
22-
body: referredby=https://website.xyz/wp-admin/edit.php?s=user&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&paged=1&action2=-1
22+
data: referredby=https://website.xyz/wp-admin/edit.php?s=user&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&paged=1&action2=-1
2323
output:
2424
no_log_contains: id "932235"
2525
- test_title: 9507355-2
@@ -36,6 +36,6 @@ tests:
3636
method: GET
3737
version: "HTTP/1.1"
3838
uri: /wp-admin/post.php
39-
body: _wp_original_http_referer=https://website.xyz/wp-admin/edit.php?s=user&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&paged=1&action2=-1
39+
data: _wp_original_http_referer=https://website.xyz/wp-admin/edit.php?s=user&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&paged=1&action2=-1
4040
output:
4141
no_log_contains: id "932235"

0 commit comments

Comments
 (0)