File indexing completed on 2024-12-22 05:36:19
0001 <?php 0002 0003 class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform 0004 { 0005 /** 0006 * @type string 0007 */ 0008 public $name = "SafeEmbed"; 0009 0010 /** 0011 * @param array $attr 0012 * @param HTMLPurifier_Config $config 0013 * @param HTMLPurifier_Context $context 0014 * @return array 0015 */ 0016 public function transform($attr, $config, $context) 0017 { 0018 $attr['allowscriptaccess'] = 'never'; 0019 $attr['allownetworking'] = 'internal'; 0020 $attr['type'] = 'application/x-shockwave-flash'; 0021 return $attr; 0022 } 0023 } 0024 0025 // vim: et sw=4 sts=4