1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Issue #4270 - WebP support.

This commit is contained in:
Cameron
2020-12-07 10:48:12 -08:00
parent 111cad6307
commit ca1df9d4f3
5 changed files with 57 additions and 16 deletions

View File

@@ -4638,7 +4638,7 @@ class e_parser
$path = null;
$file = trim($file);
$ext = pathinfo($file, PATHINFO_EXTENSION);
$accepted = array('jpg','gif','png','jpeg', 'svg');
$accepted = array('jpg','gif','png','jpeg', 'svg', 'webp');
if(!in_array($ext,$accepted))