From: Roland Haeder Date: Fri, 29 May 2015 16:39:32 +0000 (+0200) Subject: .inc files are mostly readable from the internet, e.g. http://example.org/some/file... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eda085211aac5258996d1d0b0ef59c8756f4352d;p=quix0rs-gnu-social.git .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 --- 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] ";