From: <gi...@ma...> - 2008-11-25 19:55:35
|
The branch, master-1.1.x has been updated via 99903fda7b565afc30a9ae9e37f9cae2053430ff (commit) from 161a677ee2b986507a06dbb65a9dfe848bd21935 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 99903fda7b565afc30a9ae9e37f9cae2053430ff Author: John Reese <jr...@le...> Date: Tue Nov 25 14:54:32 2008 -0500 Fix #9890: improper comparison of file extensions in file_download.php ----------------------------------------------------------------------- Summary of changes: file_download.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ----------------------------------------------------------------------- commit 99903fda7b565afc30a9ae9e37f9cae2053430ff Author: John Reese <jr...@le...> Date: Tue Nov 25 14:54:32 2008 -0500 Fix #9890: improper comparison of file extensions in file_download.php diff --git a/file_download.php b/file_download.php index 067b03a..8074cc4 100644 --- a/file_download.php +++ b/file_download.php @@ -91,7 +91,7 @@ header( 'Content-Length: ' . $v_filesize ); $t_filename = file_get_display_name( $v_filename ); $t_inline_files = explode(',', config_get('inline_file_exts', 'gif')); - if ( in_array( file_get_extension($t_filename), $t_inline_files ) ) { + if ( in_array( strtolower( file_get_extension($t_filename) ), $t_inline_files ) ) { $t_disposition = ''; //'inline;'; } else { $t_disposition = ' attachment;'; ----------------------------------------------------------------------- -- Mantis Bug Tracker |