Hardcode acceptable attachment extensions to common images
This commit is contained in:
parent
762719179b
commit
d07d18a0cb
|
@ -79,6 +79,17 @@ class MessageAttachmentObjectType extends \wcf\system\attachment\AbstractAttachm
|
|||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getAllowedExtensions() {
|
||||
return [ 'png'
|
||||
, 'gif'
|
||||
, 'jpg'
|
||||
, 'jpeg'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue