In some environments people can override most things but not mod_sec rules, so this breaks their blog and they can't recover unless they manually edit the file. There is no way to detect whether you can overwrite the rules or not.
git-svn-id: https://develop.svn.wordpress.org/trunk@7563 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc2dd59c98
commit
e0c55d6d00
|
@ -925,14 +925,6 @@ class WP_Rewrite {
|
|||
|
||||
$rules .= "</IfModule>\n";
|
||||
|
||||
// If ModSecurity is loaded, disable it for uploads.
|
||||
$rules .= "\n<IfModule mod_security.c>\n" .
|
||||
"<Files async-upload.php>\n" .
|
||||
"SecFilterEngine Off\n" .
|
||||
"SecFilterScanPOST Off\n" .
|
||||
"</Files>\n" .
|
||||
"</IfModule>\n";
|
||||
|
||||
$rules = apply_filters('mod_rewrite_rules', $rules);
|
||||
$rules = apply_filters('rewrite_rules', $rules); // Deprecated
|
||||
|
||||
|
|
Loading…
Reference in New Issue