Index: feed_path_publisher.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feed_path_publisher/feed_path_publisher.module,v
retrieving revision 1.1
diff -u -r1.1 feed_path_publisher.module
--- feed_path_publisher.module	24 Apr 2008 16:15:22 -0000	1.1
+++ feed_path_publisher.module	26 Apr 2008 00:27:02 -0000
@@ -24,7 +24,13 @@
     );
   }
   else {
-    $res = db_query('SELECT title, feed FROM {feed_path_publisher} WHERE path_prefix = LEFT("%s", LENGTH(path_prefix))', $_GET['q']);
+    if (drupal_is_front_page()) {
+      $path = '<front>';
+    }
+    else {
+      $path = $_GET['q'];
+    }
+    $res = db_query('SELECT title, feed FROM {feed_path_publisher} WHERE path_prefix = LEFT("%s", LENGTH(path_prefix))', $path);
 
     while ($row = db_fetch_object($res)) {
       drupal_add_link(array('rel' => 'alternate',
@@ -69,9 +75,9 @@
     }
     
     $rows[] = array(
-      $row->title,
-      $path_prefix,
-      $row->feed,
+      check_plain($row->title),
+      check_plain($path_prefix),
+      check_plain($row->feed),
       implode(' ', $ops),
     );
   }
@@ -113,7 +119,7 @@
     '#type' => 'textfield',
     '#title' => t('Path prefix'),
     '#default_value' => $item->path_prefix,
-    '#description' => t('Leaving this blank publishes to the entire site.'),
+    '#description' => t('Leaving this blank publishes to the entire site. You can use <front> to have your feed link added only to the home page.'),
   );
 
   $form['feed'] = array(
