diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-06 11:30:12 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-06 11:30:12 +0000 |
| commit | f0755f6daf0713c360b4ac99ca3ce82e9d4c421e (patch) | |
| tree | 2feb34b9ae8114ee2f8b1d2c313980889355ef38 /phpBB/install/install_update.php | |
| parent | 1070cf800fd9a101a50bb89fe9c6571e5651ef72 (diff) | |
| download | forums-f0755f6daf0713c360b4ac99ca3ce82e9d4c421e.tar forums-f0755f6daf0713c360b4ac99ca3ce82e9d4c421e.tar.gz forums-f0755f6daf0713c360b4ac99ca3ce82e9d4c421e.tar.bz2 forums-f0755f6daf0713c360b4ac99ca3ce82e9d4c421e.tar.xz forums-f0755f6daf0713c360b4ac99ca3ce82e9d4c421e.zip | |
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
Diffstat (limited to 'phpBB/install/install_update.php')
| -rw-r--r-- | phpBB/install/install_update.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index a2e2084f28..caa5158dad 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -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; |
