Index: apachesolr.index.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.index.inc,v
retrieving revision 1.1.2.6.2.34
diff -u -p -r1.1.2.6.2.34 apachesolr.index.inc
--- apachesolr.index.inc	16 Feb 2011 17:50:24 -0000	1.1.2.6.2.34
+++ apachesolr.index.inc	18 Feb 2011 05:23:31 -0000
@@ -303,7 +303,10 @@ function apachesolr_add_tags_to_document
     $tag = strtolower($tag);
     // We don't want to index links auto-generated by the url filter.
     if ($tag != 'a' || !preg_match('@(?:http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://|www\.)[a-zA-Z0-9]+@', $matches[2][$key])) {
-      $document->{$tags_to_index[$tag]} .= ' '. $matches[2][$key];
+      if (!isset($document->{$tags_to_index[$tag]})){
+        $document->{$tags_to_index[$tag]} = '';
+      }
+      $document->{$tags_to_index[$tag]} .= ' '. apachesolr_clean_text($matches[2][$key]);
     }
   }
 }
