diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .htaccess | 5 | ||||
-rw-r--r-- | lib/functions.php | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -3,4 +3,5 @@ config.php feed.* feeds/ files/ +keys/ log.txt @@ -14,9 +14,12 @@ AddType application/json .json </IfModule> </Files> +# deny access to key files +RedirectMatch 403 ^/keys/.*$ + <IfModule mod_rewrite.c> RewriteEngine On -RewriteBase /microblog +RewriteBase / # friendly URLs RewriteRule ^feed/json/?$ feed/feed.json [L] diff --git a/lib/functions.php b/lib/functions.php index 3f69b56..c5990f1 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -19,7 +19,7 @@ function check_login() { } else { // invalid cookie data unset($_COOKIE['microblog_login']); - setcookie('microblog_login', '', time()-3600, '/', $domain, false); + setcookie('microblog_login', '', time()-3600, '/', false, false); } } |