Make WordPress Core


Ignore:
Timestamp:
02/14/2010 02:27:19 AM (16 years ago)
Author:
nacin
Message:

Use stripos() instead of strpos() with strtolower(). For PHP < 5 we have stripos() in compat.php. Fixes #11176

File:
1 edited

Legend:

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

    r13106 r13132  
    13831383    // If Mac and mod_security, no Flash. :(
    13841384    $flash = true;
    1385     if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
     1385    if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'mac') && apache_mod_loaded('mod_security') )
    13861386        $flash = false;
    13871387
Note: See TracChangeset for help on using the changeset viewer.