From eb56b71b47f7be415d39d451a2a38bdfd1831f26 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 13 Apr 2005 08:05:05 +0000 Subject: [PATCH] Fixed bug with conditions and '&' SVN revision: 1316 --- src/elogd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 92bcbd1e..c14ce63a 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.623 2005/04/13 08:05:05 ritt + Fixed bug with conditions and '&' + Revision 1.622 2005/04/12 07:11:27 ritt Fixed crash on 'm*' regex search @@ -3156,7 +3159,7 @@ BOOL match_param(char *str, char *param, int conditional_only) nand = strbreak(plist[i], alist, 10, "&"); for (j = 0; j < nand; j++) { for (k = 0; k < ncl; k++) - if (strcmp(clist[k], alist[j]) == 0) + if (stricmp(clist[k], alist[j]) == 0) break; if (k == ncl) @@ -8009,7 +8012,10 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL else { strlcat(condition, ",", sizeof(condition)); strlcat(condition, str, sizeof(condition)); - } + } + + set_condition(condition); + n_attr = scan_attributes(lbs->name); } } }