Fix #2328 automatically add WebP image to og:image meta tag

This commit is contained in:
Kijin Sung 2024-04-29 23:40:50 +09:00
parent 0d71f5a0e0
commit eb61c2c45d

View file

@ -580,7 +580,7 @@ class HTMLDisplayHandler
foreach ($document_files as $file)
{
if ($file->isvalid !== 'Y' || !preg_match('/\.(?:bmp|gif|jpe?g|png)$/i', $file->uploaded_filename))
if ($file->isvalid !== 'Y' || !preg_match('/\.(?:bmp|gif|jpe?g|png|webp)$/i', $file->uploaded_filename))
{
continue;
}