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:
matt 2008-03-29 04:03:09 +00:00
parent 73768f4a8d
commit 214aaea94f
1 changed files with 0 additions and 8 deletions

View File

@ -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