Disable mod_security for uploader. Props andy. see #6406

git-svn-id: http://svn.automattic.com/wordpress/trunk@7558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-28 06:08:20 +00:00
parent acb9f8f738
commit c4865c3418
2 changed files with 9 additions and 1 deletions

View File

@ -925,6 +925,14 @@ class WP_Rewrite {
$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('rewrite_rules', $rules); // Deprecated

View File

@ -16,6 +16,6 @@ $wp_version = '2.5-RC2';
*
* @global int $wp_db_version
*/
$wp_db_version = 7499;
$wp_db_version = 7558;
?>