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
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
..
base Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
plugins Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
relations Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
accesstoken.js Import lib/common only 2017-12-12 10:28:13 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
invite.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
settings.js Improved validation layer (#9427) 2018-02-16 00:49:15 +01:00
subscriber.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tag.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
user.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
webhook.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00