mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
attachment add more image format
This commit is contained in:
@@ -35,7 +35,7 @@ if ($Attach->enable_attachment())
|
|||||||
$ext_l = strrpos($origfilename, ".");
|
$ext_l = strrpos($origfilename, ".");
|
||||||
$ext = strtolower(substr($origfilename, $ext_l+1, strlen($origfilename)-($ext_l+1)));
|
$ext = strtolower(substr($origfilename, $ext_l+1, strlen($origfilename)-($ext_l+1)));
|
||||||
$banned_ext = array('exe', 'com', 'bat', 'msi');
|
$banned_ext = array('exe', 'com', 'bat', 'msi');
|
||||||
$img_ext = array('jpeg', 'jpg', 'png', 'gif');
|
$img_ext = array('jpeg', 'jpg', 'png', 'gif', 'webp', 'bmp', 'tif', 'tiff', 'heic');
|
||||||
|
|
||||||
if (!$file || $filesize == 0 || $file["name"] == "") // nothing received
|
if (!$file || $filesize == 0 || $file["name"] == "") // nothing received
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user