0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00
ghost/core
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
..
client@7fa52be861 Updated Ghost-Admin: API request without updated_by/created_by 2018-04-05 18:51:58 +02:00
server Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
test Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00