0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/services/themes
Aileen Nowak 6e117e63fb 🐛 Fixed gscan errors not caught for corrupted zips
closes TryGhost/Support#426
refs TryGhost/gscan#106
needs TryGhost/gscan#107

GScan can return errors, which was not handled in our theme validator and caused Ghost to crash completely. GScan will now return an Ignition error when its not able to read the `.zip` file.

e. g.: `{"errors":[{"message":"Failed to read zip file","context":"tife.zip","errorType":"ValidationError","errorDetails":"invalid relative path: ../tife/"}]}`
2018-05-16 10:20:30 +08:00
..
config
active.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
engine.js
index.js Consistent event names 2018-04-15 23:52:42 +02:00
list.js
loader.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
middleware.js
Storage.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
to-json.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
validate.js 🐛 Fixed gscan errors not caught for corrupted zips 2018-05-16 10:20:30 +08:00