mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
safer name for the updater downloads (even if removed after download) - reported by SHS`
git-svn-id: file:///svn/phpbb/trunk@7134 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -590,7 +590,9 @@ class install_update extends module
|
||||
}
|
||||
|
||||
// Now update the installation or download the archive...
|
||||
$archive_filename = 'update_' . $this->update_info['version']['from'] . '_to_' . $this->update_info['version']['to'];
|
||||
$download_filename = 'update_' . $this->update_info['version']['from'] . '_to_' . $this->update_info['version']['to'];
|
||||
$archive_filename = $download_filename . '_' . time() . '_' . unique_id();
|
||||
|
||||
$update_list = $cache->get('_update_list');
|
||||
$conflicts = request_var('conflict', array('' => 0));
|
||||
|
||||
@@ -749,7 +751,7 @@ class install_update extends module
|
||||
{
|
||||
$compress->close();
|
||||
|
||||
$compress->download($archive_filename);
|
||||
$compress->download($archive_filename, $download_filename);
|
||||
@unlink($phpbb_root_path . 'store/' . $archive_filename . $use_method);
|
||||
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user