Index: linkchecker.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/linkchecker/linkchecker.module,v
retrieving revision 1.7.4.75
diff -u -r1.7.4.75 linkchecker.module
--- linkchecker.module	9 May 2009 10:35:10 -0000	1.7.4.75
+++ linkchecker.module	9 May 2009 10:42:35 -0000
@@ -94,6 +94,12 @@
     '#title' => t('Scan blocks for links'),
     '#description' => t('Enable this checkbox if links in blocks should be checked.')
   );
+  $form['settings']['linkchecker_extract_object_embed'] = array(
+    '#default_value' => variable_get('linkchecker_extract_object_embed', 0),
+    '#type' => 'checkbox',
+    '#title' => t('Extract object/embed links'),
+    '#description' => t('Enable this checkbox if links in object/embed tags should be extracted.'),
+  );
   $form['settings']['linkchecker_fqdn_only'] = array(
     '#default_value' => variable_get('linkchecker_fqdn_only', 1),
     '#type' => 'checkbox',
@@ -1163,8 +1169,23 @@
     \s*['\"]?)
   @ix", $text, $matches);
 
+  // Finds embedded tags with links in the content.
+  $matches_embed = array();  
+  if (variable_get('linkchecker_extract_object_embed', 0) == 1) {
+    preg_match_all("@
+      <embed
+      \s
+      (.(?!(src)))*?
+      \s*
+      (src\s*=\s*['\"]?
+      ([^\'#\[%\">][^\'\">]*[^\'\"> ])
+      \s*['\"]?)
+      [^>]+>
+    @ix", $text, $matches_embed);
+  }
+
   $links = array();
-  $ret = $matches[5];
+  $ret = array_merge($matches_links[5], $matches_embed[4]);
 
   for ($i=0; isset($ret[$i]); $i++) {
     // Full qualified URLs.
