The function _video_cck_field_submit_id, which runs regex on a YouTube URI to obtain the video ID, does not seem to be grabbing just the ID to pass into the object tag set in my install.

It's passing the whole URL, so I get an object tag set that looks like this:


<object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/http://www.youtube.com/watch?v=vRi0m329iL4"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/http://www.youtube.com/watch?v=vRi0m329iL4" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></object>

As you can see, the param and embed tags have doubled-up paths.

I thought perhaps the function was not detecting the difference between just youtube.com and www.youtube.com, but I tested adding else ifs to account for that and it did not seem to matter.

Comments

aaron’s picture

Assigned: Unassigned » aaron
Status: Active » Fixed

sorry. i committed that change without testing. bad aaron, bad...

i've fixed the regex for that (i think), so it should work now.

let me know if there are still problems...

Anonymous’s picture

Status: Fixed » Closed (fixed)