0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/web/shared/middlewares
Naz 5066e65e03 Added validation to redirects config
refs https://linear.app/tryghost/issue/CORE-86/fix-failing-site-instance-when-redirects-file-is-invalid
refs 260a47da83

- Added validation logic to catch redirects files having invalid RegEx expressions when they are introduced into the system (on upload)
- This way the error happening in the refed commit would have not happened as the validator would not have passed it through
- Moved up the "Router" declaration in custom-redirects as it needs to happen before any other bit of logic has a chance to throw
2021-10-04 18:32:40 +02:00
..
api
brute.js
cache-control.js
custom-redirects.js Added validation to redirects config 2021-10-04 18:32:40 +02:00
error-handler.js
index.js Removed non-existent labs file export 2021-08-13 13:41:38 +01:00
maintenance.js
pretty-urls.js
uncapitalise.js
url-redirects.js