WordPress.org

Make WordPress Core

Changeset 7401


Ignore:
Timestamp:
03/19/2008 06:18:59 PM (14 years ago)
Author:
markjaquith
Message:

Make sure apache_getenv() exists before using it. fixes #6278

File:
1 edited

Legend:

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

    r7397 r7401  
    780780
    781781    // If Mac and mod_security, no Flash. :(
    782     if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
     782    if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
    783783        $flash = false;
    784784    else
Note: See TracChangeset for help on using the changeset viewer.