Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Swf now disabled by default in Mediaplugin and added explanation SC#284

  • Loading branch information...
commit 2928e3d2d69d968cf487505f825ab4750e778e2f 1 parent ea07be8
skodak authored
View
2  filter/mediaplugin/defaultsettings.php
@@ -21,7 +21,7 @@
set_config( 'filter_mediaplugin_ignore_swf','' );
}
else {
- set_config( 'filter_mediaplugin_enable_swf', 1 );
+ set_config( 'filter_mediaplugin_enable_swf', 0 ); //disable swf embedding by default for now
}
}
if (!isset($CFG->filter_mediaplugin_enable_mov) or $forcereset) {
View
10 filter/mediaplugin/filterconfig.html
@@ -6,6 +6,7 @@
$txt = new Object;
$txt->mediapluginmp3 = get_string( 'mediapluginmp3','admin' );
$txt->mediapluginswf = get_string( 'mediapluginswf','admin' );
+ $txt->mediapluginswfnote = get_string( 'mediapluginswfnote','admin' );
$txt->mediapluginmov = get_string( 'mediapluginmov','admin' );
$txt->mediapluginwmv = get_string( 'mediapluginwmv','admin' );
$txt->mediapluginmpg = get_string( 'mediapluginmpg','admin' );
@@ -25,41 +26,49 @@
<td align="right"><?php echo $txt->mediapluginmp3 ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mp3',
$CFG->filter_mediaplugin_enable_mp3 ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginswf?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_swf',
$CFG->filter_mediaplugin_enable_swf ); ?></td>
+ <td><?php echo $txt->mediapluginswfnote ?></td>
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginmov ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mov',
$CFG->filter_mediaplugin_enable_mov ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginwmv ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_wmv',
$CFG->filter_mediaplugin_enable_wmv ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginmpg ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mpg',
$CFG->filter_mediaplugin_enable_mpg ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginavi ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_avi',
$CFG->filter_mediaplugin_enable_avi ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginflv ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_flv',
$CFG->filter_mediaplugin_enable_flv ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginram ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_ram',
$CFG->filter_mediaplugin_enable_ram ); ?></td>
+ <td />
</tr>
<tr valign="top">
<td align="right"><?php echo $txt->mediapluginrpm ?></td>
@@ -70,5 +79,6 @@
<td align="right"><?php echo $txt->mediapluginrm ?></td>
<td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_rm',
$CFG->filter_mediaplugin_enable_rm ); ?></td>
+ <td />
</tr>
</table>
View
1  lang/en_utf8/admin.php
@@ -191,6 +191,7 @@
$string['mediapluginmp3'] = 'Enable .mp3 filter';
$string['mediapluginmpg'] = 'Enable .mpg filter';
$string['mediapluginswf'] = 'Enable .swf filter';
+$string['mediapluginswfnote'] = 'As a default security measure, normal users should not allowed to embed swf flash files.';
$string['mediapluginram'] = 'Enable .ram filter';
$string['mediapluginrm'] = 'Enable .rm filter';
$string['mediapluginrpm'] = 'Enable .rpm filter';
Please sign in to comment.
Something went wrong with that request. Please try again.