Skip to content

Commit 430309f

Browse files
committed
Implemented: FS#912 - Improve statistics .htaccess file
1 parent c4570e2 commit 430309f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ function update($event_name,$data) {
803803
//* Create .htaccess and .htpasswd file for website statistics
804804
if(!is_file($data["new"]["document_root"].'/web/stats/.htaccess') or $data["old"]["document_root"] != $data["new"]["document_root"]) {
805805
if(!is_dir($data["new"]["document_root"].'/web/stats')) mkdir($data["new"]["document_root"].'/web/stats');
806-
$ht_file = "AuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$data["new"]["document_root"]."/.htpasswd_stats\n<limit GET PUT POST>\nrequire valid-user\n</limit>";
806+
$ht_file = "AuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$data["new"]["document_root"]."/.htpasswd_stats\nrequire valid-user";
807807
file_put_contents($data["new"]["document_root"].'/web/stats/.htaccess',$ht_file);
808808
chmod($data["new"]["document_root"].'/web/stats/.htaccess',0664);
809809
unset($ht_file);

0 commit comments

Comments
 (0)