Changeset 61289 for branches/6.9/src/wp-includes/ID3/module.tag.id3v2.php
- Timestamp:
- 11/24/2025 06:36:59 PM (3 months ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/ID3/module.tag.id3v2.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/wp-includes/ID3/module.tag.id3v2.php
r56975 r61289 660 660 // Identifier <up to 64 bytes binary data> 661 661 $exploded = explode("\x00", $parsedFrame['data'], 2); 662 $parsedFrame['ownerid'] = (isset($exploded[0]) ? $exploded[0] : '');662 $parsedFrame['ownerid'] = $exploded[0]; 663 663 $parsedFrame['data'] = (isset($exploded[1]) ? $exploded[1] : ''); 664 664 … … 1069 1069 1070 1070 $frame_remainingdata = substr($frame_remainingdata, $frame_terminatorpos + strlen($frame_textencoding_terminator)); 1071 if (($timestampindex == 0) && (ord($frame_remainingdata[0]) != 0)) { 1072 // timestamp probably omitted for first data item 1073 } else { 1074 $parsedFrame['lyrics'][$timestampindex]['timestamp'] = getid3_lib::BigEndian2Int(substr($frame_remainingdata, 0, 4)); 1075 $frame_remainingdata = substr($frame_remainingdata, 4); 1071 if (strlen($frame_remainingdata)) { // https://github.com/JamesHeinrich/getID3/issues/444 1072 if (($timestampindex == 0) && (ord($frame_remainingdata[0]) != 0)) { 1073 // timestamp probably omitted for first data item 1074 } else { 1075 $parsedFrame['lyrics'][$timestampindex]['timestamp'] = getid3_lib::BigEndian2Int(substr($frame_remainingdata, 0, 4)); 1076 $frame_remainingdata = substr($frame_remainingdata, 4); 1077 } 1078 $timestampindex++; 1076 1079 } 1077 $timestampindex++;1078 1080 } 1079 1081 } … … 1305 1307 1306 1308 $frame_offset = 0; 1307 $parsedFrame['adjustmentbits'] = substr($parsedFrame['data'], $frame_offset++, 1);1309 $parsedFrame['adjustmentbits'] = ord(substr($parsedFrame['data'], $frame_offset++, 1)); 1308 1310 $frame_adjustmentbytes = ceil($parsedFrame['adjustmentbits'] / 8); 1309 1311
Note: See TracChangeset
for help on using the changeset viewer.