Skip to content

Commit 5f517f9

Browse files
committed
Global: Remove conditional rules for mod security in .htaccess as they can break an installation under certain circumstances (SecRuleRemoveById not allowed in <If> context) - refs #3163
1 parent f341e65 commit 5f517f9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

.htaccess

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,3 @@ AddType application/font-woff .woff .woff2
8989
ExpiresByType application/font-woff "access plus 1 month"
9090
</IfModule>
9191

92-
# Add MOD Security exceptions against XSS Attack confusion in main/lp/*.php
93-
# See https://github.com/chamilo/chamilo-lms/issues/3163
94-
<IfModule mod_security.c>
95-
<If "%{REQUEST_URI} =~ m#main/lp#">
96-
SecRuleRemoveById 212000-212999
97-
</If>
98-
</IfModule>
99-
100-
<IfModule mod_security2.c>
101-
<If "%{REQUEST_URI} =~ m#main/lp#">
102-
SecRuleRemoveById 212000-212999
103-
</If>
104-
</IfModule>
105-

0 commit comments

Comments
 (0)