From 214aaea94f994aaaaafb94cec4e2c194d3e16598 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 29 Mar 2008 04:03:09 +0000 Subject: [PATCH] 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 --- wp-includes/rewrite.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index e5b2fa4520..c984e50962 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -925,14 +925,6 @@ class WP_Rewrite { $rules .= "\n"; - // If ModSecurity is loaded, disable it for uploads. - $rules .= "\n\n" . - "\n" . - "SecFilterEngine Off\n" . - "SecFilterScanPOST Off\n" . - "\n" . - "\n"; - $rules = apply_filters('mod_rewrite_rules', $rules); $rules = apply_filters('rewrite_rules', $rules); // Deprecated