mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-04 22:53:27 -04:00
fix: Generate correct htaccess in cli/prepare (#2480)
Bug introduced in https://github.com/FreshRSS/FreshRSS/pull/2461
This commit is contained in:
committed by
Frans de Jonge
parent
cb31874085
commit
c82aff177e
@@ -28,9 +28,17 @@ if (!is_file(DATA_PATH . '/config.php')) {
|
||||
}
|
||||
|
||||
file_put_contents(DATA_PATH . '/.htaccess',
|
||||
"Order Allow,Deny\n" .
|
||||
"Deny from all\n" .
|
||||
"Satisfy all\n"
|
||||
"# Apache 2.2\n" .
|
||||
"<IfModule !mod_authz_core.c>\n" .
|
||||
" Order Allow,Deny\n" .
|
||||
" Deny from all\n" .
|
||||
" Satisfy all\n" .
|
||||
"</IfModule>\n" .
|
||||
"\n" .
|
||||
"# Apache 2.4\n" .
|
||||
"<IfModule mod_authz_core.c>\n" .
|
||||
" Require all denied\n" .
|
||||
"</IfModule>\n"
|
||||
);
|
||||
|
||||
accessRights();
|
||||
|
||||
Reference in New Issue
Block a user