Fixed XF\Http\Upload::analyzeAudio() function reads aac as mp3

inzanty

Active member
Affected version
2.2.7
While writing an addon that adds support for additional audio formats, I noticed a strange bug? If you upload an .aac file with the mime type 'audio/x-hx-aac-adts', the XF\Http\Upload::analyzeAudio() function detects it as an .mp3 file.
1690557796557.png

.acc file contains:
image.png
 
Last edited:
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.14).

Change log:
Improve audio mime-type detection
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom