summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 0e5d15eaf..50bdc13ae 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2626,7 +2626,9 @@
$allowed_elements = array('p', 'br', 'div', 'table', 'tr', 'td', 'th',
'ul', 'ol', 'li', 'blockquote', 'span', 'html', 'body', 'a', 'img',
- 'iframe', 'video', 'audio', 'source');
+ 'video', 'audio', 'source', 'object', 'embed');
+
+ if ($_SESSION['hasSandbox']) array_push($allowed_elements, 'iframe');
$disallowed_attributes = array('id', 'style', 'class');