Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.88
diff -u -p -r1.1.2.12.2.88 apachesolr.module
--- apachesolr.module	16 Jan 2009 20:03:40 -0000	1.1.2.12.2.88
+++ apachesolr.module	18 Jan 2009 02:39:39 -0000
@@ -501,7 +501,7 @@ function apachesolr_node_to_document($ni
       $path = 'node/' . $node->nid;
       $output = drupal_get_path_alias($path, $language);
       if ($output && $output != $path) {
-        $document->path = $output;
+        $document->path = apachesolr_strip_ctl_chars($output);
       }
     }
 
