mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem with [URL="file://...]
SVN revision: 1514
This commit is contained in:
parent
0c30a5fd67
commit
7eb83900f4
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user