Commit 7e305287 authored by quicksketch's avatar quicksketch

Issue #1080620 by m4olivei: Incorrect string value error when

uploading mp3 file; Ignore music_cd_identifier id3 tag.
parent de192ea1
......@@ -140,7 +140,7 @@ function filefield_meta(&$file) {
// Typically $type may be IDv2 (for MP3s) or quicktime (for AAC).
foreach ($values as $key => $value) {
$value = isset($value[0]) ? (string) $value[0] : (string) $value;
if (!empty($value) && $key != 'coverart') {
if (!empty($value) && $key != 'coverart' && $key != 'music_cd_identifier') {
$file->data['tags'][$key] = html_entity_decode($value, ENT_QUOTES, 'UTF-8');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment