From aa40d4dfcf8c2e23c739ed672635549f266adab7 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 25 Mar 2017 12:10:38 -0700 Subject: [PATCH] Open PDFs in the browser rather than downloading Fixes #22583 --- file_download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_download.php b/file_download.php index 705fc095a0..29729351f3 100644 --- a/file_download.php +++ b/file_download.php @@ -195,7 +195,7 @@ $t_show_inline = $f_show_inline; $t_mime_force_inline = array( 'image/jpeg', 'image/gif', 'image/tiff', 'image/bmp', 'image/svg+xml', 'image/png', - ); + 'application/pdf' ); $t_mime_force_attachment = array( 'application/x-shockwave-flash' ); $t_mime_type = substr( $t_content_type, 0, strpos( $t_content_type, ';' ) );