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

pull/3446/head
Yannick Warnier 5 years ago
parent f341e654a2
commit 5f517f9752
  1. 14
      .htaccess

@ -89,17 +89,3 @@ AddType application/font-woff .woff .woff2
ExpiresByType application/font-woff "access plus 1 month"
</IfModule>
# Add MOD Security exceptions against XSS Attack confusion in main/lp/*.php
# See https://github.com/chamilo/chamilo-lms/issues/3163
<IfModule mod_security.c>
<If "%{REQUEST_URI} =~ m#main/lp#">
SecRuleRemoveById 212000-212999
</If>
</IfModule>
<IfModule mod_security2.c>
<If "%{REQUEST_URI} =~ m#main/lp#">
SecRuleRemoveById 212000-212999
</If>
</IfModule>

Loading…
Cancel
Save