Jelajahi Sumber

Allow video source tag work with htmlpurifier #2133

jmontoyaa 7 tahun lalu
induk
melakukan
1f34a8deb1

+ 3 - 0
main/inc/lib/formvalidator/Rule/allowed_tags.inc.php

@@ -316,6 +316,9 @@ $allowed_tags_student['video']['src'] = array();
 $allowed_tags_student['video']['controls'] = array();
 $allowed_tags_student['video']['id'] = array();
 
+$allowed_tags_student['source'] = array();
+$allowed_tags_student['source']['type'] = array();
+$allowed_tags_student['source']['src'] = array();
 
 // font
 $allowed_tags_student['font'] = array();

+ 7 - 0
main/inc/lib/security.lib.php

@@ -380,6 +380,13 @@ class Security
                         'controls' => 'Bool',
                     )
                 );
+                $def->addElement(
+                    'source',
+                    'Block',
+                    'Flow',
+                    'Common',
+                    array('src' => 'URI', 'type' => 'Text',)
+                );
             }
 
             $purifier[$user_status] = new HTMLPurifier($config);