From c65d0a9d2cf7412ff42fdf8374337e7be63b92f7 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 19 Jan 2011 09:41:35 +0000 Subject: [PATCH] - Fixed bug with "B" attribute and quick filter - Made two logoobks with same subdir work (again) SVN revision: 2359 --- src/elogd.c | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index fe854be1..b1803f81 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -3984,13 +3984,25 @@ int el_index_logbooks() strcpy(lb_list[n].data_dir, data_dir); lb_list[n].el_index = NULL; - if (is_verbose()) - eprintf("Indexing logbook \"%s\" in \"%s\" ... ", logbook, lb_list[n].data_dir); - eflush(); - status = el_build_index(&lb_list[n], FALSE); - if (is_verbose()) - if (status == EL_SUCCESS) - eprintf("ok\n"); + /* check if other logbook uses the same directory */ + for (j=0 ; j str + 1 && *(p - 1) == '=') + /* if parameter not followed by '=', skip it */ + if (*(p+strlen(param)) != '=') { p += strlen(param); - else - return p; + continue; + } + + /* if parameter is value of another parameter, skip it */ + if (p > str + 1 && *(p - 1) == '=') { + p += strlen(param); + continue; + } if (*p == 0) return NULL; + return p; + } while (1); } @@ -26391,6 +26411,7 @@ void interprete(char *lbook, char *path) } /* authorize via negotiation */ + /* rsprintf("HTTP/1.1 401 Authorization Required\r\n"); rsprintf("Server: ELOG HTTP %s-%d\r\n", VERSION, atoi(svn_revision + 13)); rsprintf("WWW-Authenticate: NegotiateBasic realm=\"%s\"\r\n", lbs->name); @@ -26409,7 +26430,7 @@ void interprete(char *lbook, char *path) rsprintf("the credentials required.

\r\n"); rsprintf("\r\n"); return; - + */ /* check for correct session ID */ if (!check_login(lbs, getparam("sid")))