Browse Source

Secure the new CHANGELOG.md file and update installto.sh to sync it

pull/8058/head
Aleksander Machniak 4 years ago
parent
commit
9c0ce85d19
  1. 2
      .htaccess
  2. 2
      bin/installto.sh

2
.htaccess

@ -12,7 +12,7 @@ RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F]
# - deny access to some locations
RewriteRule ^/?(\.git|\.tx|\.ci|SQL|bin|config|logs|temp|tests|vendor|program\/(include|lib|localization|steps)) - [F]
# - deny access to some documentation files
RewriteRule /?(README.*|SECURITY.*|meta\.json|composer\..*|jsdeps.json)$ - [F]
RewriteRule /?(README.*|CHANGELOG.*|SECURITY.*|meta\.json|composer\..*|jsdeps.json)$ - [F]
</IfModule>
<IfModule mod_deflate.c>

2
bin/installto.sh

@ -77,7 +77,7 @@ if (strtolower($input) == 'y') {
}
}
foreach (['index.php','config/defaults.inc.php','composer.json-dist','jsdeps.json','CHANGELOG','README.md','UPGRADING','LICENSE','INSTALL'] as $file) {
foreach (['index.php','config/defaults.inc.php','composer.json-dist','jsdeps.json','CHANGELOG.md','README.md','UPGRADING','LICENSE','INSTALL'] as $file) {
$command = "rsync -a --out-format=%n " . INSTALL_PATH . "$file $target_dir/$file";
if (file_exists(INSTALL_PATH . $file) && (system($command, $ret) === false || $ret > 0)) {

Loading…
Cancel
Save