Fixed Broken media tag causes redirect to YouTube

Sticking this in our forum:
Code:
[media=youtube] [/media[/media]
... causes the page with that message in it to be re-directed to YouTube. It even happens so fast it's sometimes hard to catch-it in order to edit / deal with the message.
 
This happens when you use the iframe version of the embed. I think this is actually a YT bug. Not sure what we can do about it yet...
 
Try this:
Code:
<object width="640" height="385" data="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash">
<param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="640" height="385" />
</object>
 
I've done a hacky workaround for this by stripping out / from YouTube links specifically (as other sites may need it). Hopefully they'll fix it though so I can remove it.
 
Top Bottom