Skip to content

Commit

Permalink
restrict access to log dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kerphi committed Aug 30, 2012
1 parent a7750fd commit 876c765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/index.php
Expand Up @@ -7,9 +7,9 @@

function debug($msg) {
if (is_string($msg)) {
file_put_contents(__DIR__.'/logs/pfc.log', $msg."\n", FILE_APPEND);
file_put_contents(__DIR__.'/log/pfc.log', $msg."\n", FILE_APPEND);
} else {
file_put_contents(__DIR__.'/logs/pfc.log', print_r($msg, true), FILE_APPEND);
file_put_contents(__DIR__.'/log/pfc.log', print_r($msg, true), FILE_APPEND);
}
}

Expand Down
3 changes: 3 additions & 0 deletions server/log/.htaccess
@@ -0,0 +1,3 @@
order deny,allow
deny from all
allow from localhost

0 comments on commit 876c765

Please sign in to comment.