mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-04-01 10:54:52 +00:00
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public function getAllowedExtensions() {
|
||||||
|
return [ 'png'
|
||||||
|
, 'gif'
|
||||||
|
, 'jpg'
|
||||||
|
, 'jpeg'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user