From 09e9e04f89743134530367f40283fff5459768b6 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 19 Mar 2008 18:18:59 +0000 Subject: [PATCH] Make sure apache_getenv() exists before using it. fixes #6278 git-svn-id: https://develop.svn.wordpress.org/trunk@7401 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 82cdd0aaaf..779682ca54 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -779,7 +779,7 @@ function media_upload_form( $errors = null ) { $flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php"; // If Mac and mod_security, no Flash. :( - if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) + if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) $flash = false; else $flash = true;