mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Encode '&' correctly if present in 'Start page' option
SVN revision: 1230
This commit is contained in:
parent
5cebf76431
commit
ff6e3bc293
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.576 2005/03/02 16:29:20 ritt
|
||||||
|
Encode '&' correctly if present in 'Start page' option
|
||||||
|
|
||||||
Revision 1.575 2005/03/02 14:20:16 ritt
|
Revision 1.575 2005/03/02 14:20:16 ritt
|
||||||
Fixed wrong comma display together with 'List display'
|
Fixed wrong comma display together with 'List display'
|
||||||
|
|
||||||
@ -14145,6 +14148,8 @@ BOOL is_command_allowed(LOGBOOK * lbs, char *command)
|
|||||||
|
|
||||||
void build_ref(char *ref, int size, char *mode, char *expand)
|
void build_ref(char *ref, int size, char *mode, char *expand)
|
||||||
{
|
{
|
||||||
|
char str[1000];
|
||||||
|
|
||||||
if (strchr(getparam("cmdline"), '?'))
|
if (strchr(getparam("cmdline"), '?'))
|
||||||
strlcat(ref, strchr(getparam("cmdline"), '?'), size);
|
strlcat(ref, strchr(getparam("cmdline"), '?'), size);
|
||||||
|
|
||||||
@ -14162,6 +14167,10 @@ void build_ref(char *ref, int size, char *mode, char *expand)
|
|||||||
|
|
||||||
/* eliminate old last= */
|
/* eliminate old last= */
|
||||||
subst_param(ref, size, "last", getparam("last"));
|
subst_param(ref, size, "last", getparam("last"));
|
||||||
|
|
||||||
|
/* replace any '&' by '&' */
|
||||||
|
strlcpy(str, ref, sizeof(str));
|
||||||
|
strencode2(ref, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user