Make WordPress Core

Ticket #26265: id3.patch

File id3.patch, 1.4 KB (added by tomsommer, 12 years ago)
  • wp-includes/ID3/getid3.php

     
    2828        // sys_get_temp_dir() may give inaccessible temp dir, e.g. with open_basedir on virtual hosts
    2929        $temp_dir = sys_get_temp_dir();
    3030}
    31 $temp_dir = realpath($temp_dir);
     31$temp_dir = @realpath($temp_dir);
    3232$open_basedir = ini_get('open_basedir');
    3333if ($open_basedir) {
    3434        // e.g. "/var/www/vhosts/getid3.org/httpdocs/:/tmp/"
     
    17731773class getid3_exception extends Exception
    17741774{
    17751775        public $message;
    1776 }
    1777  No newline at end of file
     1776}
  • wp-admin/includes/media.php

     
    26262626
    26272627        $metadata = array();
    26282628
     2629        if ( ! defined('GETID3_TEMP_DIR') )
     2630                define('GETID3_TEMP_DIR', get_temp_dir());
     2631
    26292632        if ( ! class_exists( 'getID3' ) )
    26302633                require( ABSPATH . WPINC . '/ID3/getid3.php' );
    26312634        $id3 = new getID3();
     
    26812684                return false;
    26822685        $metadata = array();
    26832686
     2687        if ( ! defined('GETID3_TEMP_DIR') )
     2688               define('GETID3_TEMP_DIR', get_temp_dir());
     2689
    26842690        if ( ! class_exists( 'getID3' ) )
    26852691                require( ABSPATH . WPINC . '/ID3/getid3.php' );
    26862692        $id3 = new getID3();