Changeset 60812
- Timestamp:
- 09/29/2025 07:11:01 PM (7 weeks ago)
- Location:
- trunk/src/wp-includes/ID3
- Files:
-
- 3 edited
-
getid3.lib.php (modified) (1 diff)
-
getid3.php (modified) (3 diffs)
-
module.audio.ogg.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/getid3.lib.php
r56975 r60812 1789 1789 } 1790 1790 if (isset($commandline)) { 1791 $output = trim( `$commandline`);1791 $output = trim(shell_exec($commandline)); 1792 1792 if (ctype_digit($output)) { 1793 1793 $filesize = (float) $output; -
trunk/src/wp-includes/ID3/getid3.php
r60800 r60812 482 482 if (!empty($path_so_far)) { 483 483 $commandline = 'dir /x '.escapeshellarg(implode(DIRECTORY_SEPARATOR, $path_so_far)); 484 $dir_listing = `$commandline`;484 $dir_listing = shell_exec($commandline); 485 485 $lines = explode("\n", $dir_listing); 486 486 foreach ($lines as $line) { … … 1810 1810 1811 1811 $commandline = '"'.GETID3_HELPERAPPSDIR.'vorbiscomment.exe" -w -c "'.$empty.'" "'.$file.'" "'.$temp.'"'; 1812 $VorbisCommentError = `$commandline`;1812 $VorbisCommentError = shell_exec($commandline); 1813 1813 1814 1814 } else { … … 1821 1821 1822 1822 $commandline = 'vorbiscomment -w -c '.escapeshellarg($empty).' '.escapeshellarg($file).' '.escapeshellarg($temp).' 2>&1'; 1823 $VorbisCommentError = `$commandline`;1823 $VorbisCommentError = shell_exec($commandline); 1824 1824 1825 1825 } -
trunk/src/wp-includes/ID3/module.audio.ogg.php
r56975 r60812 788 788 case 'rg_audiophile': 789 789 case 'replaygain_album_gain': 790 $info['replay_gain']['album']['adjustment'] = ( double) $commentvalue[0];790 $info['replay_gain']['album']['adjustment'] = (float) $commentvalue[0]; 791 791 unset($info['ogg']['comments'][$index]); 792 792 break; … … 794 794 case 'rg_radio': 795 795 case 'replaygain_track_gain': 796 $info['replay_gain']['track']['adjustment'] = ( double) $commentvalue[0];796 $info['replay_gain']['track']['adjustment'] = (float) $commentvalue[0]; 797 797 unset($info['ogg']['comments'][$index]); 798 798 break; 799 799 800 800 case 'replaygain_album_peak': 801 $info['replay_gain']['album']['peak'] = ( double) $commentvalue[0];801 $info['replay_gain']['album']['peak'] = (float) $commentvalue[0]; 802 802 unset($info['ogg']['comments'][$index]); 803 803 break; … … 805 805 case 'rg_peak': 806 806 case 'replaygain_track_peak': 807 $info['replay_gain']['track']['peak'] = ( double) $commentvalue[0];807 $info['replay_gain']['track']['peak'] = (float) $commentvalue[0]; 808 808 unset($info['ogg']['comments'][$index]); 809 809 break; 810 810 811 811 case 'replaygain_reference_loudness': 812 $info['replay_gain']['reference_volume'] = ( double) $commentvalue[0];812 $info['replay_gain']['reference_volume'] = (float) $commentvalue[0]; 813 813 unset($info['ogg']['comments'][$index]); 814 814 break;
Note: See TracChangeset
for help on using the changeset viewer.