Skip to content

Commit 604950f

Browse files
committed
Don't clear class for audio/video when removing xss - refs BT#14026
1 parent 222d19a commit 604950f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/inc/lib/formvalidator/Rule/allowed_tags.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315
$allowed_tags_student['video']['src'] = [];
316316
$allowed_tags_student['video']['controls'] = [];
317317
$allowed_tags_student['video']['id'] = [];
318+
$allowed_tags_student['video']['class'] = [];
318319

319320
$allowed_tags_student['audio'] = [];
320321
$allowed_tags_student['audio']['autoplay'] = [];
@@ -324,6 +325,7 @@
324325
$allowed_tags_student['audio']['controls'] = [];
325326
$allowed_tags_student['audio']['muted'] = [];
326327
$allowed_tags_student['audio']['id'] = [];
328+
$allowed_tags_student['audio']['class'] = [];
327329

328330
$allowed_tags_student['source'] = [];
329331
$allowed_tags_student['source']['type'] = [];

0 commit comments

Comments
 (0)