From b8cb3df3992184fe9dcd3fda36157874bb3f0c9e Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Sat, 1 Nov 2008 02:20:23 +0000 Subject: fix removing of quotes around parsed lines --- utility/logparse.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/utility/logparse.c b/utility/logparse.c index d172f27..534703d 100644 --- a/utility/logparse.c +++ b/utility/logparse.c @@ -375,13 +375,8 @@ apr_status_t parser_tokenize_line(const char *arg_str, char ***argv_out, ct = cp; DETERMINE_NEXTSTRING(cp, isquoted); cp++; - if (isquoted) { - (*argv_out)[argnum] = apr_palloc(token_context, cp - ct + 2); - apr_cpystrn((*argv_out)[argnum], ct -1, cp - ct + 2); - } else { - (*argv_out)[argnum] = apr_palloc(token_context, cp - ct); - apr_cpystrn((*argv_out)[argnum], ct, cp - ct); - } + (*argv_out)[argnum] = apr_palloc(token_context, cp - ct); + apr_cpystrn((*argv_out)[argnum], ct, cp - ct); cleaned = dirty = (*argv_out)[argnum]; REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped) ; -- cgit