1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Update .htaccess deny access declaration to work with Apache 2.4

This commit is contained in:
Afterster 2015-05-01 16:30:58 +02:00
parent e58d16fdbd
commit bee714524d
7 changed files with 37 additions and 2 deletions

View file

@ -1,3 +1,9 @@
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order deny,allow
Deny from all

View file

@ -1 +0,0 @@
Deny from all

View file

@ -1,3 +1,9 @@
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order deny,allow
Deny from all

View file

@ -1,3 +1,9 @@
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order deny,allow
Deny from all

View file

@ -71,7 +71,7 @@ function update_preferences($pref_id=0)
Preference::update($id,$pref_id,$value,$_REQUEST[$apply_to_all]);
}
if (Access::check('interface','100') AND $_REQUEST[$new_level]) {
if (Access::check('interface','100') && $_REQUEST[$new_level]) {
Preference::update_level($id,$_REQUEST[$new_level]);
}

View file

@ -1,3 +1,12 @@
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<FilesMatch "\.css$|\.js$|\.png$|\.gif$|\.jpg$|\.swf$|\.ttf$|\.json$|\.xml$|\.htc$|\.map$|\.woff$">
Require all granted
</FilesMatch>
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order deny,allow
Deny from all

View file

@ -1,3 +1,12 @@
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<FilesMatch "\.css$|\.gif$">
Require all granted
</FilesMatch>
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order deny,allow
Deny from all