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,