commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / packages / IDS / vendors / htmlpurifier / HTMLPurifier / AttrTransform / SafeObject.php
1 <?php
2
3 /**
4 * Writes default type for all objects. Currently only supports flash.
5 */
6 class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
7 {
8 public $name = "SafeObject";
9
10 function transform($attr, $config, $context) {
11 if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
12 return $attr;
13 }
14 }
15
16 // vim: et sw=4 sts=4