From e0c55d6d00d831767f6ff52e8fa681d2ac654219 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@7563 602fd350-edb4-49c9-b593-d223f7449a82 --- 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