ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
SafeEmbed.php
Go to the documentation of this file.
1<?php
2
4{
8 public $name = "SafeEmbed";
9
16 public function transform($attr, $config, $context)
17 {
18 $attr['allowscriptaccess'] = 'never';
19 $attr['allownetworking'] = 'internal';
20 $attr['type'] = 'application/x-shockwave-flash';
21 return $attr;
22 }
23}
24
25// vim: et sw=4 sts=4
An exception for terminatinating execution or to throw for unit testing.
transform($attr, $config, $context)
Definition: SafeEmbed.php:16
Processes an entire attribute array for corrections needing multiple values.