Make WordPress Core


Ignore:
Timestamp:
03/29/2008 04:03:09 AM (16 years ago)
Author:
matt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r7558 r7563  
    926926        $rules .= "</IfModule>\n";
    927927
    928         // If ModSecurity is loaded, disable it for uploads.
    929         $rules .= "\n<IfModule mod_security.c>\n" .
    930             "<Files async-upload.php>\n" .
    931             "SecFilterEngine Off\n" .
    932             "SecFilterScanPOST Off\n" .
    933             "</Files>\n" .
    934             "</IfModule>\n";
    935 
    936928        $rules = apply_filters('mod_rewrite_rules', $rules);
    937929        $rules = apply_filters('rewrite_rules', $rules);  // Deprecated
Note: See TracChangeset for help on using the changeset viewer.