Permalink
Browse files

MDL-18880: only insert media players for swf URLs if $CFG->filter_med…

…iaplugin_enable_swf is set
  • Loading branch information...
1 parent 094593e commit 30ca2004f64b66416fddea4d85b5aebbbdf89f67 gbateson committed Apr 19, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/hotpot/lib.php
View
@@ -1752,7 +1752,10 @@ function adjust_media_urls() {
$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)

0 comments on commit 30ca200

Please sign in to comment.