Location: PHPKode > projects > Sphider Plus > sphider-plus_v.2.9/include/IDS/vendors/htmlpurifier/HTMLPurifier/AttrTransform/SafeObject.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
Return current item: Sphider Plus