MDL-18880: only insert media players for swf URLs if $CFG->filter_mediaplugin_enable_swf is set
This commit is contained in:
+4
-1
@@ -1723,7 +1723,10 @@ class hotpot_xml_quiz extends hotpot_xml_tree {
|
||||
$quote = '["'."']?"; // single, double, or no quote
|
||||
|
||||
// patterns to media files types and paths
|
||||
$filetype = "avi|mpeg|mpg|mp3|mov|wmv|swf|flv";
|
||||
$filetype = "avi|mpeg|mpg|mp3|mov|wmv|flv";
|
||||
if ($CFG->filter_mediaplugin_enable_swf) {
|
||||
$filetype .= '|swf';
|
||||
}
|
||||
$filepath = ".*?\.($filetype)";
|
||||
|
||||
$tagopen = '(?:(<)|(\\\\u003C))'; // left angle-bracket (uses two parenthese)
|
||||
|
||||
Reference in New Issue
Block a user