Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 1f3aff7

Browse files
authored
Merge pull request #1522 from lifeforms/setup_rm_protected_uploads
remove unused protected_uploads setting from setup
2 parents 34885b6 + 90e3606 commit 1f3aff7

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

crs-setup.conf.example

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -454,17 +454,6 @@ SecDefaultAction "phase:2,log,auditlog,pass"
454454
# t:none,\
455455
# setvar:'tx.static_extensions=/.jpg/ /.jpeg/ /.png/ /.gif/ /.js/ /.css/ /.ico/ /.svg/ /.webp/'"
456456

457-
# Locations that will be inspected to enforce only images and documents uploads.
458-
# Default: /wp-admin/upload.php /wp-admin/media-new.php
459-
# Uncomment this rule to change the default set in 901180
460-
#SecAction \
461-
# "id:900270,\
462-
# phase:1,\
463-
# nolog,\
464-
# pass,\
465-
# t:none,\
466-
# setvar:'tx.protected_uploads=#/wp-admin/upload.php# #/wp-admin/media-new.php#'"
467-
468457
# Content-Types charsets that a client is allowed to send in a request.
469458
# Default: utf-8|iso-8859-1|iso-8859-15|windows-1252
470459
# Uncomment this rule to change the default.

rules/REQUEST-901-INITIALIZATION.conf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ SecRule &TX:enforce_bodyproc_urlencoded "@eq 0" \
218218
nolog,\
219219
setvar:'tx.enforce_bodyproc_urlencoded=0'"
220220

221-
# If a default protected_uploads variable is not set in crs-setup rule 900270
222-
# then a generic default will be set here.
223-
SecRule &TX:protected_uploads "@eq 0" \
224-
"id:901180,\
225-
phase:1,\
226-
pass,\
227-
t:none,\
228-
nolog,\
229-
noauditlog,\
230-
setvar:'tx.protected_uploads=#/upload.php# #/upload.asp# #/upload.jsp#'"
231-
232221
#
233222
# -=[ Initialize internal variables ]=-
234223
#

0 commit comments

Comments
 (0)