mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-29 04:04:29 +00:00
Fixed another problem with quotation marks
SVN revision: 753
This commit is contained in:
parent
8bee43926f
commit
a546074ca9
17
src/elogd.c
17
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.243 2004/02/13 20:45:09 midas
|
||||||
|
Fixed another problem with quotation marks
|
||||||
|
|
||||||
Revision 1.242 2004/02/13 20:32:34 midas
|
Revision 1.242 2004/02/13 20:32:34 midas
|
||||||
Attributes can now contain quotation marks
|
Attributes can now contain quotation marks
|
||||||
|
|
||||||
@ -6383,9 +6386,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\">\n", str,
|
rsprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\">\n", str,
|
||||||
attr_options[index][i]);
|
attr_options[index][i]);
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
|
strencode2(str, attrib[index]);
|
||||||
rsprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\"></td></tr>\n",
|
rsprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\"></td></tr>\n",
|
||||||
ua, attrib[index]);
|
ua, str);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (attr_options[index][0][0] == 0) {
|
if (attr_options[index][0][0] == 0) {
|
||||||
|
|
||||||
@ -6447,6 +6452,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("</script>\n");
|
rsprintf("</script>\n");
|
||||||
|
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* show normal edit field */
|
/* show normal edit field */
|
||||||
@ -13522,9 +13528,10 @@ void show_elog_message(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
|
|
||||||
rsprintf("<tr><td class=\"attribhead\">\n");
|
rsprintf("<tr><td class=\"attribhead\">\n");
|
||||||
|
|
||||||
for (i = 0; i < lbs->n_attr; i++)
|
for (i = 0; i < lbs->n_attr; i++) {
|
||||||
rsprintf("<input type=hidden name=\"%s\" value=\"%s\">\n", attr_list[i],
|
strencode2(str, attrib[i]);
|
||||||
attrib[i]);
|
rsprintf("<input type=hidden name=\"%s\" value=\"%s\">\n", attr_list[i], str);
|
||||||
|
}
|
||||||
|
|
||||||
/* browsing flag to distinguish "/../<attr>=<value>" from browsing */
|
/* browsing flag to distinguish "/../<attr>=<value>" from browsing */
|
||||||
rsprintf("<input type=hidden name=browsing value=1>\n");
|
rsprintf("<input type=hidden name=browsing value=1>\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user