mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
Fixed problem with Mozilla in determining file type for uploaded file
git-svn-id: file:///svn/phpbb/trunk@815 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -981,7 +981,7 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
|
||||
//
|
||||
if( file_exists($backup_file_tmpname) )
|
||||
{
|
||||
if( preg_match("/^(text\/[a-zA-Z]+)|(application\/(x\-)?gzip\-compressed)$/is", $backup_file_type) )
|
||||
if( preg_match("/^(text\/[a-zA-Z]+)|(application\/(x\-)?gzip\-compressed)|(application\/octet-stream)$/is", $backup_file_type) )
|
||||
{
|
||||
if( preg_match("/\.gz$/is",$backup_file_name) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user