From ea73d58913874e6dab2345910cc51879a32a71bf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 22 May 2016 08:43:06 -0400 Subject: [PATCH] Fix PHP warning when password_hosts is set, but is not an array (#5260) --- .htaccess | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index a2b516c..d64a325 100644 --- a/.htaccess +++ b/.htaccess @@ -1,6 +1,3 @@ -# AddDefaultCharset UTF-8 -AddType text/x-component .htc - <IfModule mod_php5.c> php_flag display_errors Off php_flag log_errors On @@ -32,7 +29,7 @@ # security rules: # - deny access to files not containing a dot or starting with a dot # in all locations except installer directory -RewriteRule ^(?!installer|[a-f0-9]{16})(\.?[^\.]+)$ - [F] +RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F] # - deny access to some locations RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F] # - deny access to some documentation files -- Gitblit v1.9.1