0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
Katharina Irrgang d87fbeca49 🐛 Fixed error handling for html response (#9280)
refs https://github.com/TryGhost/Team/issues/41

- if you add invalid handlebars logic e.g. {{if condition condition}}, handlebars throws an error
- in case of having invalid hbs in an amp page, the amp component throwed another syntax error (which is fixed in this PR)
- furthermore the `setTemplate` helper function had a logic bug, which did not handle errors correctly
  - if there is an error and a template is set (e.g. amp), we have to still render the error page and not the amp page
- this fix only ensures that the error handling is correct, we still see the error of the "ugly" handlebars message
  - e.g. [amp.hbs] Cannot read property 'includeZero' of undefined
  - but no longer -> Cannot read property 'html' of undefined (which was a syntax error in Ghost)
2017-11-28 12:00:43 +00:00
..
adapters Moved isLocalFile fn to storage utils (#8985) 2017-11-09 11:11:54 +01:00
admin Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
api Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
apps 🐛 Fixed error handling for html response (#9280) 2017-11-28 12:00:43 +00:00
auth 🐛 Fixed concurrent renew of access tokens 2017-11-14 10:22:09 +00:00
config 🐛 Fixed import and redirect uploads for Win10/Edge (#9267) 2017-11-22 17:30:53 +00:00
controllers 🐛 Fixed error handling for html response (#9280) 2017-11-28 12:00:43 +00:00
data 🐛 Fixed Sitemap when permalink contains Primary Tag (#9273) 2017-11-27 12:38:56 +01:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
middleware 🐛 Fixed throwing 500 for invalid encoded urls (#9279) 2017-11-28 11:39:38 +00:00
models Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
permissions Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
public 🛠 🙈 Rename ghost-url.js to ghost-sdk.js (#8767) 2017-07-28 18:23:32 +04:00
services Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
settings 🐛 Theme name is point number (#9184) 2017-10-26 13:54:18 +02:00
site Rework route service to prevent circular dependencies (#9229) 2017-11-09 13:58:22 +00:00
themes Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
translations Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
utils Moved isLocalFile fn to storage utils (#8985) 2017-11-09 11:11:54 +01:00
views 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
analytics-events.js Add segment analytics for blog data (#8912) 2017-08-22 12:23:23 +01:00
app.js Rename blog -> site 2017-10-26 18:09:56 +01:00
errors.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
i18n.js Do not log error if i18n.doesTranslationKeyExist is called 2017-11-14 14:03:48 +01:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00