2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server/models/base
kirrg001 853b518a51 Sanitize incoming model relation data
refs #9548

- we always receive date strings from the client in ISO format
- we ensure that we transform these strings into JS dates for comparison
- when the client sends relations, we need to ensure that relations are checked as well
- will only work for the post model for now, because this is the only model which uses `bookshelf-relations`
- added unit tests
- removed some model tests, which do the same
2018-04-05 18:51:58 +02:00
..
index.js Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
listeners.js Avoid knex warning when destroying a user 2018-01-27 12:31:51 +01:00
token.js Bump dependencies (#9513) 2018-03-19 16:27:06 +01:00
utils.js Import lib/common only 2017-12-12 10:28:13 +01:00