Commit | Line | Data |
---|---|---|
7f254ad8 AE |
1 | <?php\r |
2 | \r | |
3 | /**\r | |
4 | * Writes default type for all objects. Currently only supports flash.\r | |
5 | */\r | |
6 | class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform\r | |
7 | {\r | |
8 | public $name = "SafeObject";\r | |
9 | \r | |
10 | function transform($attr, $config, $context) {\r | |
11 | if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';\r | |
12 | return $attr;\r | |
13 | }\r | |
14 | }\r | |
15 | \r | |
16 | // vim: et sw=4 sts=4\r |