From eda085211aac5258996d1d0b0ef59c8756f4352d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 29 May 2015 18:39:32 +0200 Subject: [PATCH] .inc files are mostly readable from the internet, e.g. http://example.org/some/file.inc and should be avoided. Signed-off-by: Roland Haeder --- scripts/clean_file_table.php | 2 +- scripts/clean_profiles.php | 2 +- scripts/remove_duplicate_file_urls.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/clean_file_table.php b/scripts/clean_file_table.php index 2444a4bb69..020a56d484 100755 --- a/scripts/clean_file_table.php +++ b/scripts/clean_file_table.php @@ -34,7 +34,7 @@ Will print '.' for each file, except for deleted ones which are marked as 'x'. END_OF_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; if (!have_option('y', 'yes')) { print "About to delete local file entries where the file cannot be found. Are you sure? [y/N] "; diff --git a/scripts/clean_profiles.php b/scripts/clean_profiles.php index 245b2ef5c7..8ac10270ed 100755 --- a/scripts/clean_profiles.php +++ b/scripts/clean_profiles.php @@ -35,7 +35,7 @@ WARNING: This has not been tested thoroughly. Maybe we've missed a table to comp END_OF_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; if (!have_option('y', 'yes')) { print "About to delete profiles that we think are useless to save. Are you sure? [y/N] "; diff --git a/scripts/remove_duplicate_file_urls.php b/scripts/remove_duplicate_file_urls.php index 9754820d98..ff11df2174 100755 --- a/scripts/remove_duplicate_file_urls.php +++ b/scripts/remove_duplicate_file_urls.php @@ -32,7 +32,7 @@ Remove duplicate URL entries in the file and file_redirection tables because the END_OF_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; if (!have_option('y', 'yes')) { print "About to remove duplicate URL entries in file and file_redirection tables. Are you sure? [y/N] "; -- 2.39.5