From 0046405d0d323af35566fd7b31c7bc2abc99a62a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 24 Jun 2005 20:22:33 +0000 Subject: [PATCH] Fixed bug with conditional attributes and quick filters SVN revision: 1403 --- src/elogd.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index de387124..cf11ee25 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.685 2005/06/24 20:22:33 ritt + Fixed bug with conditional attributes and quick filters + Revision 1.684 2005/06/17 20:45:40 ritt Changed 'find menu' to 'list menu' @@ -15850,22 +15853,22 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, if (comment[0] == 0) strcpy(comment, attr_options[i][j]); - for (i1=i2=0 ; i1<=(int)strlen(attr_options[i][j]) ; i1++) { - if (attr_options[i][j][i1] == '(') { + for (i1=i2=0 ; i1<=(int)comment ; i1++) { + if (comment[i1] == '(') { option[i2++] = '\\'; option[i2++] = '('; - } else if (attr_options[i][j][i1] == '{') { + } else if (comment[i1] == '{') { option[i2]= 0; break; } else - option[i2++] = attr_options[i][j][i1]; + option[i2++] = comment[i1]; } if (isparam(attr_list[i]) && strieq(option, getparam(attr_list[i]))) - rsprintf("