0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
Aileen Nowak d59f199ee3 🐛 🎨 Improves AMP validation for video and iframe (#7270)
no issue

Video tags aren't supported in Amperize yet, therefore, we strip them out. If a `<video>` tag has nested `<source>` elements, they would stay because they are whitelisted regarding `Sanitize`, as we use them for `<audio>` tags as well.

This PR uses `cheerio` to strip out in `<video>` nested `<source>` tags, without removing the fallback text.
It also removes prohibites attributes for `<amp-iframe>` which are e. g. used by Vimeo embeds.

Removes every kind of inline `style` attributes, as they will cause validation errors as well.
2016-08-25 12:47:28 +02:00
..
api 🎨 Theme events (#7269) 2016-08-25 10:36:12 +02:00
apps 🐛 🎨 Improves AMP validation for video and iframe (#7270) 2016-08-25 12:47:28 +02:00
config feature: theme upload/download/delete (#7209) 2016-08-23 13:07:25 +01:00
controllers [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
data 🎨 Util to convert relative urls in absolute (#7264) 2016-08-25 07:09:40 +01:00
errors 🎨 Improve theme validation error messaging (#7253) 2016-08-24 14:45:54 +02:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
mail 🐛 Don't overwrite config.theme.title in GhostMail (#7224) 2016-08-19 10:22:07 +02:00
middleware Remove open redirect by removing double slashes from redirects (#7247) 2016-08-23 13:47:59 +02:00
models fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
permissions feature: theme upload/download/delete (#7209) 2016-08-23 13:07:25 +01:00
routes feature: theme upload/download/delete (#7209) 2016-08-23 13:07:25 +01:00
scheduling post-scheduling: delete job but time is null (#7035) 2016-06-28 20:14:29 +02:00
storage Use node-archiver to create zips (#7268) 2016-08-25 09:22:22 +02:00
translations 🎨 Improve theme validation error messaging (#7253) 2016-08-24 14:45:54 +02:00
utils Use node-archiver to create zips (#7268) 2016-08-25 09:22:22 +02:00
views Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
filters.js
ghost-server.js
i18n.js
index.js fix: enable maintenance mode only if there is an upgrade to perform (#7129) 2016-07-26 09:56:07 +01:00
overrides.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
update-check.js Support for custom notifications (#7077) 2016-07-22 14:02:10 +01:00