mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem of submitting messages with konqueror
SVN revision: 174
This commit is contained in:
parent
6a49272f6c
commit
04a0df895e
10
elogd.c
10
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 2.43 2002/07/11 08:13:31 midas
|
||||||
|
Fixed problem of submitting messages with konqueror
|
||||||
|
|
||||||
Revision 2.42 2002/07/11 07:22:42 midas
|
Revision 2.42 2002/07/11 07:22:42 midas
|
||||||
Made 'elog:<logbook>/<id>' reference work
|
Made 'elog:<logbook>/<id>' reference work
|
||||||
|
|
||||||
@ -1657,7 +1660,7 @@ int i;
|
|||||||
{
|
{
|
||||||
if (head_only)
|
if (head_only)
|
||||||
{
|
{
|
||||||
for (i=*lbs->n_el_index-1 ; i>0 ; i--)
|
for (i=*lbs->n_el_index-1 ; i>=0 ; i--)
|
||||||
if (lbs->el_index[i].thread_head)
|
if (lbs->el_index[i].thread_head)
|
||||||
return lbs->el_index[i].message_id;
|
return lbs->el_index[i].message_id;
|
||||||
|
|
||||||
@ -4278,7 +4281,7 @@ time_t now;
|
|||||||
rsprintf("</td></tr></table></td></tr>\n\n");
|
rsprintf("</td></tr></table></td></tr>\n\n");
|
||||||
|
|
||||||
rsprintf("</td></tr></table>\n");
|
rsprintf("</td></tr></table>\n");
|
||||||
rsprintf("</body></html>\r\n");
|
rsprintf("</form></body></html>\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
@ -8745,12 +8748,15 @@ struct timeval timeout;
|
|||||||
url_decode(logbook);
|
url_decode(logbook);
|
||||||
|
|
||||||
/* check for trailing '/' after logbook */
|
/* check for trailing '/' after logbook */
|
||||||
|
if (strstr(net_buffer, "POST") == NULL) // fix for konqueror
|
||||||
|
{
|
||||||
if (logbook[0] && *p == ' ')
|
if (logbook[0] && *p == ' ')
|
||||||
{
|
{
|
||||||
sprintf(str, "%s/", logbook_enc);
|
sprintf(str, "%s/", logbook_enc);
|
||||||
redirect(str);
|
redirect(str);
|
||||||
goto redir;
|
goto redir;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* check for trailing '/' after logbook/ID */
|
/* check for trailing '/' after logbook/ID */
|
||||||
if (logbook[0] && *p == '/' && *(p+1) != ' ')
|
if (logbook[0] && *p == '/' && *(p+1) != ' ')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user