Reporter: Warren Jones Tue Mar 26 17:28:31 1996 Problem: When parsetitle() fails to parse the title of an HTML document, it returns a null string. An example that confuses the parser is a title in boldface: <B>Some Stuff</B> It's not clear that this is good HTML (Mosaic also fails to parse it), but returning a null string results in the frustrating situation where the user of a WWWWAIS gateway can have a link but nothing to click on. Solution: Return the file name in place of a null string. This is the easy way out -- perhaps parsetitle() should try harder to figure out stuff like the above example. Index: string.c =================================================================== RCS file: /usr0/wjones/src/CVS.repo/swish/src/string.c,v retrieving revision 1.1.1.1 diff -c -r1.1.1.1 string.c *** string.c 1995/10/18 18:43:29 1.1.1.1 --- string.c 1995/10/20 23:49:14 *************** *** 194,200 **** if (title[j] == '\"') title[j] = '\''; free(tag); ! return title; } else { if (lstrstr(tag, "")) --- 194,200 ---- if (title[j] == '\"') title[j] = '\''; free(tag); ! return *title ? title : shorttitle; } else { if (lstrstr(tag, "<title>"))