Welcome! » Log In » Create A New Profile

Why can't I embed a swf file?

Posted by JDelasko 
JDelasko
Why can't I embed a swf file?
March 04, 2010 09:48PM

In spite of enabling Safe Object and Safe Embed, the embed tags are stripped.... all that's left is something like this:

<object width="633" height="458" data="http://somewebsite.com/Homes.swf" type="application/x-shockwave-flash">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="src" value="http://somewebsite.com/Homes.swf" />
</object>

So.... it won't be viewable in 70% of the worlds browsers, ie, IE.

This is driving me nuts. Exactly what is Safe Embed supposed to do? Granted, removing the embed tag altogether is pretty safe, but not what I was looking for.

Re: Why can't I embed a swf file?
March 05, 2010 11:56AM
Re: Why can't I embed a swf file?
March 08, 2010 02:06AM

I'm happy to report that a solution has hit the HTML Purifier development branch! You can check out the code from http://repo.or.cz/w/htmlpurifier.git and you can enable it using this code:

&lt;pre&gt;&lt;![CDATA[ $config-&gt;set('HTML.SafeObject', true); $config-&gt;set('Output.FlashCompat', true); ]]&gt;&lt;/pre&gt;

If you were using %HTML.SafeEmbed, that code is no longer necessary and you should disable it. Please let me know if there are any bugs!

Sorry, you do not have permission to post/reply in this forum.