mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Option 'selection page' can now contain absolute URL
SVN revision: 527
This commit is contained in:
parent
3bd0e758f3
commit
44dc2dd5df
@ -8,6 +8,7 @@ Version 2.3.7, released April 23rd, 2003
|
|||||||
- Implemented 3D cell frames
|
- Implemented 3D cell frames
|
||||||
- Added anchor for attachments
|
- Added anchor for attachments
|
||||||
- Replace CRLF.CRLF by CRLF..CRLF in email notifications
|
- 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
|
Version 2.3.6, released April 23rd, 2003
|
||||||
========================================
|
========================================
|
||||||
|
|||||||
10
src/elogd.c
10
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.103 2003/05/07 19:07:17 midas
|
||||||
Replace CR.CR by CR..CR in email notifications
|
Replace CR.CR by CR..CR in email notifications
|
||||||
|
|
||||||
@ -11269,6 +11272,13 @@ FILE *f;
|
|||||||
/* check for global selection page if no logbook given */
|
/* check for global selection page if no logbook given */
|
||||||
if (!logbook[0] && getcfg("global", "Selection page", str))
|
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 */
|
/* check if file starts with an absolute directory */
|
||||||
if (str[0] == DIR_SEPARATOR || str[1] == ':')
|
if (str[0] == DIR_SEPARATOR || str[1] == ':')
|
||||||
strlcpy(file_name, str, sizeof(file_name));
|
strlcpy(file_name, str, sizeof(file_name));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user