Skip to content

A free, self-hostable news aggregator…

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

Alexandre Alapetitee24d9f39fb29
diff --git a/.htaccess.dist b/.htaccess.dist
index c11c9e9ab..f1b518c4a 100644
--- a/.htaccess.dist
+++ b/.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>