Error in emfield.php

cangeceiro - October 23, 2009 - 15:06
Project:Embedded Media Field
Version:6.x-1.12
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I found an error in hooks/emfield.php on line 84.

function EMMODULE_PROVIDER_extract($embed, $field) {
  return array(
    '@example\.com/video/(*+)@i'
    '@example\.com/rss/video/(*+)@i'
  );
}

should be

function EMMODULE_PROVIDER_extract($embed, $field) {
  return array(
    '@example\.com/video/(*+)@i',
    '@example\.com/rss/video/(*+)@i'
  );
}

note the coma after the first regex in the array

#1

aaron - October 28, 2009 - 17:53
Status:active» fixed

@cangeceiro: awesome, thanks for the catch!

#2

System Message - November 11, 2009 - 18:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.