From 44dc2dd5df39e9cee2991835aff810e6482bee66 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 8 May 2003 19:58:31 +0000 Subject: [PATCH] Option 'selection page' can now contain absolute URL SVN revision: 527 --- doc/ChangeLog | 1 + src/elogd.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index 67797b66..b1f136c7 100755 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -8,6 +8,7 @@ Version 2.3.7, released April 23rd, 2003 - Implemented 3D cell frames - Added anchor for attachments - Replace CRLF.CRLF by CRLF..CRLF in email notifications +- Option 'selection page' can now contain absolute URL Version 2.3.6, released April 23rd, 2003 ======================================== diff --git a/src/elogd.c b/src/elogd.c index 5cdd7b4c..95b08aba 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.104 2003/05/08 19:57:59 midas + Option 'selection page' can now contain absolute URL + Revision 1.103 2003/05/07 19:07:17 midas Replace CR.CR by CR..CR in email notifications @@ -11269,6 +11272,13 @@ FILE *f; /* check for global selection page if no logbook given */ if (!logbook[0] && getcfg("global", "Selection page", str)) { + /* check for URL */ + if (strstr(str, "http://")) + { + redirect(NULL, str); + return; + } + /* check if file starts with an absolute directory */ if (str[0] == DIR_SEPARATOR || str[1] == ':') strlcpy(file_name, str, sizeof(file_name));