Option 'selection page' can now contain absolute URL
SVN revision: 527
This commit is contained in:
@@ -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
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user