Hi!
Thanks a lot for debugging!
Please find a path in attachement.
It is suitable for both 3.1.x and 3.2.x sources.
Malakhov Alexander wrote:
>
> I resolved problem, described above (I think :)
> when file gets for indexing by FTP, and have .htm extension, it accepts
> text/html type ("AddType text/html *.html *.htm" command in
> indexer.conf).
> BUT IF this file contains
> <A HREF=robots.txtz>
> where "z" = any symbol, it causes Segmentation fault.
> I very bad known C and English (sorry), but I think, that trouble in
> src/server.c, lines 239-244
>
> Have a nice day, work and beer :)
--- server.c.orig Tue Jul 17 16:15:07 2001
+++ server.c Tue Jul 17 16:18:10 2001
@@ -240,6 +240,8 @@
if(!strcmp(robots,"/robots.txt")){
robots=strdup(url);
robots[strlen(url)-10]='\0';
+ }else{
+ robots=NULL;
}
}