From cc6c529562ef5751133d97e3fec067c0072f215b Mon Sep 17 00:00:00 2001 From: berumuron Date: Fri, 26 Mar 2021 19:41:33 +0100 Subject: tec: Remove data/do-install.txt (#3555) * Remove file data/do-install.txt This file was painful during update because we had to remember to delete it each time. It added a security issue by allowing an attacker to reinstall FreshRSS during the update process. The (more powerful) file data/applied_migrations.txt has been introduced in 8619cf6fa to replace do-install.txt. We had to wait for at least one release in order to make sure existing instances of FreshRSS created the migration file. It should be ok now. * Replace i18n install.not_deleted key * Update documentation to update FreshRSS --- lib/lib_install.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') diff --git a/lib/lib_install.php b/lib/lib_install.php index f28cb094d..82c98d646 100644 --- a/lib/lib_install.php +++ b/lib/lib_install.php @@ -113,12 +113,6 @@ function initDb() { return $databaseDAO->testConnection(); } -function deleteInstall() { - $path = join_path(DATA_PATH, 'do-install.txt'); - @unlink($path); - return !file_exists($path); -} - function setupMigrations() { $migrations_path = APP_PATH . '/migrations'; $migrations_version_path = DATA_PATH . '/applied_migrations.txt'; -- cgit v1.2.3