0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/unit/web/shared/middleware
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 Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
brute.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
cache-control.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
custom-redirects.test.js Added validation to redirects config 2021-10-04 18:32:40 +02:00
uncapitalise.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
url-redirects.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00