mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
more access restrictions on files in extensions
This commit is contained in:
parent
612a6d1473
commit
31bcd5d9bf
10
.htaccess
10
.htaccess
|
@ -25,10 +25,16 @@ RewriteRule "^views/.*/images.*$" "-" [L]
|
|||
RewriteRule "^out/images.*$" "-" [L]
|
||||
RewriteRule "^styles/.*$" "-" [L]
|
||||
|
||||
# Accessing a file in an extension is always possible
|
||||
# Accessing a file in an extension is only possible in one
|
||||
# of the directories op, out. res
|
||||
# Added for old extensions which do not use routes
|
||||
RewriteRule ^ext/[^/]+/icon.(?:png|svg)$ - [L]
|
||||
RewriteCond %{REQUEST_URI} "ext/[^/]+/"
|
||||
RewriteRule !^ext/[^/]+/.*(?:op|out|res) - [F]
|
||||
RewriteCond %{REQUEST_URI} "ext/[^/]+/res/.*$" [NC]
|
||||
RewriteRule !^ext/[^/]+/res/.*\.(?:css|js|png|svg) - [F]
|
||||
RewriteCond %{REQUEST_FILENAME} -f
|
||||
RewriteRule "^ext/.*$" "-" [L]
|
||||
RewriteRule ^ext/.*$ - [L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
- show expired documents in calendar
|
||||
- call new hook 'cleanUpDocument' after uploading or updating a document
|
||||
- pass 'add' or 'update' to hook 'addDocumentContentFile'
|
||||
- more access restrictions on files in extensions
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.24
|
||||
|
|
Loading…
Reference in New Issue
Block a user