fixed CSRF danger for uploaded html files
This commit is contained in:
@@ -42,4 +42,10 @@ IndexHeadInsert "<link rel=\\"stylesheet\\" href=\\"/icons/autoindex-custom.css\
|
||||
Require all granted\n\
|
||||
</Directory>\n' >> /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
# Force download for shared files
|
||||
RUN printf '\n# --- Force download in _share ---\n\
|
||||
<Directory "/usr/local/apache2/htdocs/_share">\n\
|
||||
Header set Content-Disposition "attachment"\n\
|
||||
</Directory>\n' >> /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user