summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-09-11 12:35:49 +0200
committerChristophe Simonis <chs@odoo.com>2017-09-11 12:35:49 +0200
commitec15765eecfecff3e3b0a4cc8810d73f042e30c2 (patch)
tree06207f693e192599fb03c75a707a3f2c1b74d429 /addons/website/static/src
parent2a0d62295efcd3b4f3b6a992de2ebb1e2f74623f (diff)
parent48f88992da66a12eb0653a8a69b7d4e0e9389d9e (diff)
[MERGE] forward port branch saas-14 up to 48f88992da6
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.snippets.animation.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js
index 234a43463dd..d0547dcf9db 100644
--- a/addons/website/static/src/js/website.snippets.animation.js
+++ b/addons/website/static/src/js/website.snippets.animation.js
@@ -418,7 +418,8 @@ animation.registry.media_video = animation.Class.extend({
var size = '<div class="media_iframe_video_size">&nbsp;</div>';
this.$target.html(editor+size);
}
- this.$target.html(this.$target.html()+'<iframe src="'+_.escape(this.$target.data("src"))+'" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');
+ // rebuilding the iframe, from https://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/
+ this.$target.html(this.$target.html()+'<iframe sandbox="allow-scripts allow-same-origin" src="'+_.escape(this.$target.data("oe-expression"))+'" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');
return this._super.apply(this, arguments);
},
});