Skip to content
Permalink
Browse files

Allow control attributes for audio and video

  • Loading branch information...
thorsten committed Dec 10, 2017
1 parent 4bd31b9 commit 45442c4de7a8e8549e5b6e97c09cdc93c953f52e
Showing with 1 addition and 1 deletion.
  1. +1 −1 phpmyfaq/inc/PMF/Filter.php
@@ -116,7 +116,7 @@ public static function removeAttributes($html = '')
{
$keep = [
'href', 'src', 'title', 'alt', 'class', 'style', 'id', 'name',
'size', 'dir', 'rel', 'rev', 'target', 'width', 'height'
'size', 'dir', 'rel', 'rev', 'target', 'width', 'height', 'controls'
];
preg_match_all('/[a-z]+=".+"/iU', $html, $attributes);

0 comments on commit 45442c4

Please sign in to comment.
You can’t perform that action at this time.