Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Whitelist the `allowfullscreen` iframe attribute (#8086)

Rishabhd93586c63f25
diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6
index 40918c49c3f..5ea109398bb 100644
--- a/app/assets/javascripts/pretty-text/white-lister.js.es6
+++ b/app/assets/javascripts/pretty-text/white-lister.js.es6
@@ -167,6 +167,7 @@ const DEFAULT_LIST = [
"iframe[marginheight]",
"iframe[marginwidth]",
"iframe[width]",
+ "iframe[allowfullscreen]",
"img[alt]",
"img[height]",
"img[title]",