浏览代码

Deny access to composer.phar in .htaccess

This file might be present if users strictly follow our install instructions
 and don't delete it on their own after successfully installing Pico.
Daniel Rudolf 7 年之前
父节点
当前提交
6bb65fb12b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .htaccess

+ 1 - 1
.htaccess

@@ -5,7 +5,7 @@
 
 
     # Deny access to internal dirs and files by passing the URL to Pico
     # Deny access to internal dirs and files by passing the URL to Pico
     RewriteRule ^(config|content|content-sample|lib|vendor)(/|$) index.php [L]
     RewriteRule ^(config|content|content-sample|lib|vendor)(/|$) index.php [L]
-    RewriteRule ^(CHANGELOG\.md|composer\.(json|lock))(/|$) index.php [L]
+    RewriteRule ^(CHANGELOG\.md|composer\.(json|lock|phar))(/|$) index.php [L]
     RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]
     RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]
 
 
     # Enable URL rewriting
     # Enable URL rewriting