Stop unknown file types being detected as audio files (bug #829136)
Commit d644694205 created a new audio file type with a list of indexes
into the mimetype table for audio mimetypes. However, the numeric keys
of the 'descriptions' array were being used to fetch audio mimetpes
instead of the values, which resulted in files with undetected
'application/octet-stream' mimetypes becoming audio artefacts after
upload.
Change-Id: I418fc8b864088269fcddcffcb56346e8f9bb78ee
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/678 gitorious. org/mahara/ mahara/ commit/ 7860521576e2aa6 cda3c9dfadc6efe a48866a461
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 7860521576e2aa6 cda3c9dfadc6efe a48866a461
Author: Richard Mansfield <email address hidden>
Date: Mon Sep 12 12:48:13 2011 +1200
Stop unknown file types being detected as audio files (bug #829136)
Commit d644694205 created a new audio file type with a list of indexes n/octet- stream' mimetypes becoming audio artefacts after
into the mimetype table for audio mimetypes. However, the numeric keys
of the 'descriptions' array were being used to fetch audio mimetpes
instead of the values, which resulted in files with undetected
'applicatio
upload.
Change-Id: I418fc8b8640882 69fcddcffcb5634 6e8f9bb78ee
Signed-off-by: Richard Mansfield <email address hidden>