Ghost/core/server/models
Hannah Wolfe 32125c2f46 Filter options passed to toJSON
fixes #5177

- we now pass API/model options directly to toJSON, which is unsafe as these options haven't always been filtered before they are passed.
- this fix adds a filter so that toJSON only uses the options it needs
- additionally, rename the 'name' option to something more specific to prevent clashes
2015-04-22 20:20:27 +01:00
..
accesstoken.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
app-field.js Naming cleanup 2014-09-20 21:09:16 +02:00
app-setting.js Naming cleanup 2014-09-20 21:09:16 +02:00
app.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
base.js Filter options passed to toJSON 2015-04-22 20:20:27 +01:00
basetoken.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
client.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
index.js Follow symlinks when resolving theme paths. 2014-10-02 13:37:18 +00:00
permission.js Extending context concept to models 2014-07-18 15:32:56 +01:00
post.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00
refreshtoken.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
role.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
settings.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
tag.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00
user.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00