mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
check for more mimetypes in getWrongFiletypeDocumentContent()
This commit is contained in:
parent
1506cef2ab
commit
fb43a82818
|
@ -3957,7 +3957,7 @@ class SeedDMS_Core_DMS {
|
||||||
* @return bool|SeedDMS_Core_Document[]
|
* @return bool|SeedDMS_Core_Document[]
|
||||||
*/
|
*/
|
||||||
function getWrongFiletypeDocumentContent() { /* {{{ */
|
function getWrongFiletypeDocumentContent() { /* {{{ */
|
||||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `mimeType` in ('application/pdf', 'image/png', 'image/gif', 'image/jpg')";
|
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `mimeType` in ('application/zip', 'application/pdf', 'image/png', 'image/gif', 'image/jpg', 'audio/mp3', 'text/rtf')";
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
if ($resArr === false)
|
if ($resArr === false)
|
||||||
return false;
|
return false;
|
||||||
|
@ -3967,10 +3967,13 @@ class SeedDMS_Core_DMS {
|
||||||
foreach($resArr as $row) {
|
foreach($resArr as $row) {
|
||||||
$expect = '';
|
$expect = '';
|
||||||
switch($row['mimeType']) {
|
switch($row['mimeType']) {
|
||||||
|
case "application/zip":
|
||||||
case "application/pdf":
|
case "application/pdf":
|
||||||
case "image/png":
|
case "image/png":
|
||||||
case "image/gif":
|
case "image/gif":
|
||||||
case "image/jpg":
|
case "image/jpg":
|
||||||
|
case "audio/mp3":
|
||||||
|
case "text/rtf":
|
||||||
$expect = substr($row['mimeType'], -3, 3);
|
$expect = substr($row['mimeType'], -3, 3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user