Make WordPress Core


Ignore:
Timestamp:
09/29/2025 07:11:01 PM (13 months ago)
Author:
swissspidy
Message:

External Libraries: Backport upstream PHP 8.5 fixes for getID3.

In absence of a new release, this cherry-picks ​8cb29233 and ​dbda40de.

Props swissspidy, vidugupta, TobiasBg, desrosj.
Fixes #64051. See #63061.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ID3/getid3.php

    r60800 r60812  
    482482                                                if (!empty($path_so_far)) {
    483483                                                        $commandline = 'dir /x '.escapeshellarg(implode(DIRECTORY_SEPARATOR, $path_so_far));
    484                                                         $dir_listing = `$commandline`;
     484                                                        $dir_listing = shell_exec($commandline);
    485485                                                        $lines = explode("\n", $dir_listing);
    486486                                                        foreach ($lines as $line) {
    … …  
    18101810
    18111811                                                $commandline = '"'.GETID3_HELPERAPPSDIR.'vorbiscomment.exe" -w -c "'.$empty.'" "'.$file.'" "'.$temp.'"';
    1812                                                 $VorbisCommentError = `$commandline`;
     1812                                                $VorbisCommentError = shell_exec($commandline);
    18131813
    18141814                                        } else {
    … …  
    18211821
    18221822                                        $commandline = 'vorbiscomment -w -c '.escapeshellarg($empty).' '.escapeshellarg($file).' '.escapeshellarg($temp).' 2>&1';
    1823                                         $VorbisCommentError = `$commandline`;
     1823                                        $VorbisCommentError = shell_exec($commandline);
    18241824
    18251825                                }
Note: See TracChangeset for help on using the changeset viewer.