Make WordPress Core


Ignore:
Timestamp:
03/21/2008 04:10:01 AM (19 years ago)
Author:
markjaquith
Message:

better Apache mod detection from andy. fixes #6278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r7407 r7441  
    780780
    781781        // If Mac and mod_security, no Flash. :(
    782         if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
     782        $flash = true;
     783        if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
    783784                $flash = false;
    784         else
    785                 $flash = true;
    786785
    787786        $post_id = intval($_REQUEST['post_id']);
Note: See TracChangeset for help on using the changeset viewer.