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: http://svn.automattic.com/wordpress/trunk@7563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
73768f4a8d
commit
214aaea94f
|
@ -925,14 +925,6 @@ class WP_Rewrite {
|
||||||
|
|
||||||
$rules .= "</IfModule>\n";
|
$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('mod_rewrite_rules', $rules);
|
||||||
$rules = apply_filters('rewrite_rules', $rules); // Deprecated
|
$rules = apply_filters('rewrite_rules', $rules); // Deprecated
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue