aboutsummaryrefslogblamecommitdiffstats
path: root/lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php
blob: 4da449981fbd4b8f23992e317309ee46baaa347c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                             
<?php

class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform
{
    public $name = "SafeEmbed";

    public function transform($attr, $config, $context) {
        $attr['allowscriptaccess'] = 'never';
        $attr['allownetworking'] = 'internal';
        $attr['type'] = 'application/x-shockwave-flash';
        return $attr;
    }
}

// vim: et sw=4 sts=4