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=ee6be9fc940ca8cf65dd6163fd13f48a32676e9e;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 573abf1ed0..408141d847 100755 --- a/scripts/clean_file_table.php +++ b/scripts/clean_file_table.php @@ -33,7 +33,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 470d6c1b91..ecb587d0c0 100755 --- a/scripts/clean_profiles.php +++ b/scripts/clean_profiles.php @@ -34,7 +34,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 a4a7cd795b..8e718761d6 100755 --- a/scripts/remove_duplicate_file_urls.php +++ b/scripts/remove_duplicate_file_urls.php @@ -31,7 +31,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] ";