Hardcode acceptable attachment extensions to common images

This commit is contained in:
Tim Düsterhus 2020-10-31 19:38:03 +01:00
parent 762719179b
commit d07d18a0cb
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
1 changed files with 11 additions and 0 deletions

View File

@ -79,6 +79,17 @@ class MessageAttachmentObjectType extends \wcf\system\attachment\AbstractAttachm
return 1;
}
/**
* @inheritDoc
*/
public function getAllowedExtensions() {
return [ 'png'
, 'gif'
, 'jpg'
, 'jpeg'
];
}
/**
* @inheritDoc
*/