Explorar o código

Fix .htaccess.dist for access to /scripts/vendor/ (#7598)

* Fix .htaccess.dist for access to /scripts/vendor/
fix https://github.com/FreshRSS/FreshRSS/issues/7596

* Exclude extensions folder, which may be mounted as volume without .htaccess
Alexandre Alapetite hai 11 meses
pai
achega
e24d9f39fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .htaccess.dist

+ 1 - 1
.htaccess.dist

@@ -7,6 +7,6 @@
 </FilesMatch>
 
 # Deny some sub-folders, which may not be excluded by their own .htaccess
-<If "%{REQUEST_URI} =~ m#/(bin|data|node_modules|vendor|\..+)(/|$)#">
+<If "%{REQUEST_URI} =~ m#(?<!/p/scripts)/(bin|data|extensions|node_modules|vendor|\..+)(/|$)#">
 	Require all denied
 </If>