Skip to content

Commit 746bf0f

Browse files
author
Till Brehm
committed
Fixed: FS#3607 - Permissions of .htaccess file in stats folder are wrong
1 parent 92288f8 commit 746bf0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ function update($event_name, $data) {
14751475
if(!is_dir($data['new']['document_root'].'/' . $web_folder . '/stats')) $app->system->mkdir($data['new']['document_root'].'/' . $web_folder . '/stats');
14761476
$ht_file = "AuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$data['new']['document_root']."/web/stats/.htpasswd_stats\nrequire valid-user";
14771477
$app->system->file_put_contents($data['new']['document_root'].'/' . $web_folder . '/stats/.htaccess', $ht_file);
1478-
$app->system->chmod($data['new']['document_root'].'/' . $web_folder . '/stats/.htaccess', 0751);
1478+
$app->system->chmod($data['new']['document_root'].'/' . $web_folder . '/stats/.htaccess', 0755);
14791479
unset($ht_file);
14801480
//}
14811481

@@ -1485,7 +1485,7 @@ function update($event_name, $data) {
14851485
$app->system->web_folder_protection($data['new']['document_root'], false);
14861486
$app->system->file_put_contents($data['new']['document_root'].'/web/stats/.htpasswd_stats', $htp_file);
14871487
$app->system->web_folder_protection($data['new']['document_root'], true);
1488-
$app->system->chmod($data['new']['document_root'].'/web/stats/.htpasswd_stats', 0751);
1488+
$app->system->chmod($data['new']['document_root'].'/web/stats/.htpasswd_stats', 0755);
14891489
unset($htp_file);
14901490
}
14911491
}

0 commit comments

Comments
 (0)