mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
2c5881f8a7
commit
909b268b21
1 changed files with 2 additions and 2 deletions
|
@ -981,7 +981,7 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
|
||||||
//
|
//
|
||||||
if( file_exists($backup_file_tmpname) )
|
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) )
|
if( preg_match("/\.gz$/is",$backup_file_name) )
|
||||||
{
|
{
|
||||||
|
@ -1022,7 +1022,7 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
include('page_header_admin.'.$phpEx);
|
include('page_header_admin.'.$phpEx);
|
||||||
message_die(GENERAL_ERROR, $lang['Restore_Error_filename']);
|
message_die(GENERAL_ERROR, $lang['Restore_Error_filename'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue