From c4865c34180f84ec4dc848a1097fad50d9681852 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 28 Mar 2008 06:08:20 +0000 Subject: [PATCH] Disable mod_security for uploader. Props andy. see #6406 git-svn-id: http://svn.automattic.com/wordpress/trunk@7558 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rewrite.php | 8 ++++++++ wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index c984e50962..e5b2fa4520 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -925,6 +925,14 @@ 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 diff --git a/wp-includes/version.php b/wp-includes/version.php index d2e309b0a3..e4b82a9bae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,6 +16,6 @@ $wp_version = '2.5-RC2'; * * @global int $wp_db_version */ -$wp_db_version = 7499; +$wp_db_version = 7558; ?>