Explorar o código

Fix access to manifest (#7158)

* Fix access to manifest
fix https://github.com/FreshRSS/FreshRSS/issues/7157

* Casing
Alexandre Alapetite hai 1 ano
pai
achega
05d9a5ddf8
Modificáronse 3 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      .htaccess.dist
  2. 1 0
      p/.htaccess
  3. 1 1
      p/themes/.htaccess

+ 1 - 1
.htaccess.dist

@@ -2,7 +2,7 @@
 # if you cannot set Apache `DocumentRoot` to `./p/` as recommended.
 
 # Deny files starting with a dot or without extension or with specific extensions
-<FilesMatch "^\.|^[^.]+$|\.(config\.js|gz|json|md|neon|sqlite|xml|ya?ml|zip)$">
+<FilesMatch "^\.|^[^.]+$|\.(config\.js|gz|md|neon|sqlite|xml|ya?ml|zip)$">
 	Require all denied
 </FilesMatch>
 

+ 1 - 0
p/.htaccess

@@ -1,6 +1,7 @@
 # If you need custom .htaccess rules, instead of modifying this file,
 # create one in `./i/.htaccess` (in particular for access control such as HTTP Basic Auth),
 # or in `../.htaccess` for other more general rules.
+# See also `../.htaccess.dist` if you cannot set Apache `DocumentRoot` to here (`FreshRSS/p/`) as recommended
 
 <IfModule mod_dir.c>
 	DirectoryIndex	index.php index.html

+ 1 - 1
p/themes/.htaccess

@@ -1,6 +1,6 @@
 <IfModule mod_authz_core.c>
 	# Deny files without extension or with specific extensions
-	<FilesMatch "^[^.]+$|\.(json|md|scss|sh)$">
+	<FilesMatch "^[^.]+$|\.(md|scss|sh)$">
 		Require all denied
 	</FilesMatch>
 </IfModule>