Option 'selection page' can now contain absolute URL

SVN revision: 527
This commit is contained in:
2003-05-08 19:58:31 +00:00
parent 3bd0e758f3
commit 44dc2dd5df
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -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
========================================
+10
View File
@@ -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));