0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/unit/web
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
..
admin Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
api Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
parent Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
shared/middleware Added validation to redirects config 2021-10-04 18:32:40 +02:00
site/middleware Fixed error when requesting resize of a blank image 2021-07-07 19:11:24 +01:00