Преглед на файлове

Allow video source tag work with htmlpurifier #2133

jmontoyaa преди 7 години
родител
ревизия
1f34a8deb1
променени са 2 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 3 0
      main/inc/lib/formvalidator/Rule/allowed_tags.inc.php
  2. 7 0
      main/inc/lib/security.lib.php

+ 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);