mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
9d114c7fa6
closes #942 - insert custom middleware to check for blacklisted files - redirect to express.static if file accepted - if not valid return next() to do nothing - currently black listing .hbs, .txt, .md and .json - debatable which is best, black list or white list, either one will probably need tweaks but erred on side of letting a theme serve unknown types |
||
---|---|---|
.. | ||
controllers | ||
data | ||
helpers | ||
models | ||
permissions | ||
plugins | ||
views | ||
api.js | ||
errorHandling.js | ||
mail.js | ||
middleware.js | ||
require-tree.js |