From 8726a6a3cb29ab61b651274d437f9f05115015e2 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Mon, 30 Aug 2021 22:01:51 +0200 Subject: [PATCH] [ticket/16863] Support playing video attachments PHPBB3-16863 --- phpBB/phpbb/storage/controller/attachment.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/storage/controller/attachment.php b/phpBB/phpbb/storage/controller/attachment.php index 8df2727ea1..9dd7ba445f 100644 --- a/phpBB/phpbb/storage/controller/attachment.php +++ b/phpBB/phpbb/storage/controller/attachment.php @@ -254,8 +254,10 @@ class attachment extends controller $response->headers->set('Content-Type', $attachment['mimetype']); // Display images in browser and force download for other file types - if (strpos($attachment['mimetype'], 'image') !== false || strpos($attachment['mimetype'], 'audio') !== false || - strpos($attachment['mimetype'], 'video') !== false) + if (strpos($attachment['mimetype'], 'image') !== false + || strpos($attachment['mimetype'], 'audio') !== false + || strpos($attachment['mimetype'], 'video') !== false + ) { $disposition = $response->headers->makeDisposition( ResponseHeaderBag::DISPOSITION_INLINE,