--- C:\news_page-cvs\news_page\OLD\news_page.module	Mon Sep 04 05:22:39 2006
+++ C:\news_page-cvs\news_page\news_page.module	Mon Sep 04 05:22:39 2006
@@ -348,17 +348,17 @@
       $word = trim($word);
       if (preg_match("/^-/", $word)) {
       $word = preg_replace('/^-/','', $word);
-      $not_title_filter[] = "lower(i.title) NOT LIKE '%" . $word . "%'";
-      $not_content_filter[] = "lower(i.description) NOT LIKE '%" . $word . "%'";
+      $not_title_filter[] = "lower(i.title) NOT LIKE '%%" . $word . "%%'";
+      $not_content_filter[] = "lower(i.description) NOT LIKE '%%" . $word . "%%'";
       $not_filter_query = implode(" AND ", $not_title_filter) . ' AND ' . implode(" AND ", $not_content_filter);
       } elseif (preg_match("/^\+/", $word)) {
       $word = preg_replace('/^\+/','', $word);
-      $and_title_filter[] = "lower(i.title) LIKE '%" . $word . "%'";
-      $and_content_filter[] = "lower(i.description) LIKE '%" . $word . "%'";
+      $and_title_filter[] = "lower(i.title) LIKE '%%" . $word . "%%'";
+      $and_content_filter[] = "lower(i.description) LIKE '%%" . $word . "%%'";
       $and_filter_query = implode(" AND ", $and_title_filter) . ' OR ' . implode(" AND ", $and_content_filter);
       } else {
-      $title_filter[] = "lower(i.title) LIKE '%" . $word . "%'";
-      $content_filter[] = "lower(i.description) LIKE '%" . $word . "%'";
+      $title_filter[] = "lower(i.title) LIKE '%%" . $word . "%%'";
+      $content_filter[] = "lower(i.description) LIKE '%%" . $word . "%%'";
       $filter_query = implode(" OR ", $title_filter) . ' OR ' . implode(" OR ", $content_filter);
       }
     }
@@ -410,7 +410,7 @@
 	}
 	
 	if ($blogit) {
-	  $blog_icon = '<a href="' . url('node/add/blog', "iid=$item->iid") . '"><img src="misc/blog.png" alt="' . t('Blog this') . '" title="' . t('blog it') . '" class="blog-it"/></a>' ;
+	  $blog_icon = '<a href="' . url('node/add/blog', "iid=$item->iid") . '"><img src="/misc/blog.png" alt="' . t('Blog this') . '" title="' . t('blog it') . '" class="blog-it"/></a>' ;
 	}
 
 	$output .= '<br /><span class="feed-item-link"><a href="' . check_url($item->link) . '">' .t('Read more') . '</a></span> <span class="feed-item-source"><a href="' . check_url($item->flink) . '">' . check_plain($item->ftitle) . '</a> ' . $blog_icon . '</span>';
