Active
Project:
Media: YouTube
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 11:06 UTC
Updated:
29 Nov 2011 at 11:06 UTC
In template_preprocess_media_youtube_default_external(), the video url is ran through check_plain(). This causes ampersands to be encoded twice, so the object tag ends up looking like this:
<object type="application/x-shockwave-flash" height="90" width="220" data="http://www.youtube.com/v/VIDEO_ID&amp;rel=0&amp;enablejsapi=1&amp;playerapiid=ytplayer&amp;fs=1" id="media-youtube-default-external-object-1">
I don't see this causing any problems, but still I wonder: Is this by design, or is it a bug?