Fixed problem with [URL="file://...]

SVN revision: 1514
This commit is contained in:
Stefan Ritt 2005-10-13 19:45:26 +00:00
parent 0c30a5fd67
commit 7eb83900f4

View File

@ -11,7 +11,7 @@
/* Version of ELOG */ /* Version of ELOG */
#define VERSION "2.6.0-beta5" #define VERSION "2.6.0-beta5"
char cvs_revision[] = "$Id$"; char svn_revision[] = "$Id$";
/* ELOG identification */ /* ELOG identification */
static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__; static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
@ -5430,7 +5430,7 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
else else
sprintf(hattrib, "%s", attrib + 5); sprintf(hattrib, "%s", attrib + 5);
} else if (strncmp(attrib, "http://", 7) != 0) /* add http:// if missing */ } else if (strstr(attrib, "://", 7) == 0) /* add http:// if missing */
sprintf(hattrib, "http://%s", attrib); sprintf(hattrib, "http://%s", attrib);
else else
strlcpy(hattrib, attrib, sizeof(hattrib)); strlcpy(hattrib, attrib, sizeof(hattrib));
@ -22377,7 +22377,7 @@ void server_loop(void)
/* about to entering the server loop, welcome user with a brief info */ /* about to entering the server loop, welcome user with a brief info */
eprintf("%s ", ELOGID); eprintf("%s ", ELOGID);
strcpy(str, cvs_revision + 15); strcpy(str, svn_revision + 13);
if (strchr(str, ' ')) if (strchr(str, ' '))
*strchr(str, ' ') = 0; *strchr(str, ' ') = 0;
eprintf("revision %s\n", str); eprintf("revision %s\n", str);