Implemented: editor uploads are constrained to safe image files inside
the upload tree, and public form submissions are size-bounded and rate-limited
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
RewriteRule ^themes/([^/]+)/public/(.*)$ themes/$1/public/$2 [L]
|
||||
|
||||
# Allow direct access to uploaded files with URL format: /uploads/{filepath;,}
|
||||
RewriteRule ^uploads/.*\.(?:php[0-9]*|phtml|phar)(?:/|$) - [F,NC]
|
||||
RewriteRule ^uploads/(.*)$ uploads/$1 [L]
|
||||
|
||||
# Rewrite all remaining requests to index.php
|
||||
|
||||
Reference in New Issue
Block a user