mirror of
https://github.com/friendica/friendica
synced 2024-11-18 13:43:42 +00:00
16 lines
389 B
PHP
16 lines
389 B
PHP
<?php
|
|
|
|
/**
|
|
* Writes default type for all objects. Currently only supports flash.
|
|
*/
|
|
class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
|
|
{
|
|
public $name = "SafeObject";
|
|
|
|
function transform($attr, $config, $context) {
|
|
if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
|
|
return $attr;
|
|
}
|
|
}
|
|
|
|
// vim: et sw=4 sts=4
|