aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pmwiki.php2
-rw-r--r--scripts/upload.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/pmwiki.php b/pmwiki.php
index e16b6148..99fcc028 100644
--- a/pmwiki.php
+++ b/pmwiki.php
@@ -318,7 +318,7 @@ Markup('closeall', '_begin',
'/^\\(:closeall:\\)$/', "MarkupMarkupClose");
function MarkupMarkupClose() { return '<:block>' . MarkupClose(); }
-$ImgExtPattern="\\.(?:gif|jpg|jpeg|a?png|svgz?|GIF|JPG|JPEG|A?PNG|SVGZ?|webp|WEBP)";
+$ImgExtPattern="\\.(?:gif|jpg|jpeg|a?png|svgz?|GIF|JPG|JPEG|A?PNG|SVGZ?|webp|WEBP|avifs?|AVIFS?)";
$ImgTagFmt="<img src='\$LinkUrl' alt='\$LinkAlt' title='\$LinkAlt' />";
$BlockMarkups = array(
diff --git a/scripts/upload.php b/scripts/upload.php
index 9492cb8b..8f680625 100644
--- a/scripts/upload.php
+++ b/scripts/upload.php
@@ -28,6 +28,7 @@ SDVA($UploadExts,array(
'png' => 'image/png', 'apng' => 'image/apng', 'bmp' => 'image/bmp', 'ico' => 'image/x-icon',
'wbmp'=> 'image/vnd.wap.wbmp', 'xcf' => 'image/x-xcf', 'webp' => 'image/webp',
'svg' => 'image/svg+xml', 'svgz' => 'image/svg+xml',
+ 'avif'=> 'image/avif', 'avifs' => 'image/avif',
'mp3' => 'audio/mpeg', 'au' => 'audio/basic', 'wav' => 'audio/x-wav',
'ogg' => 'audio/ogg', 'flac' => 'audio/x-flac', 'opus' => 'audio/opus',
'ogv' => 'video/ogg', 'mp4' => 'video/mp4', 'webm' => 'video/webm',