]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: log: The log of quotted capture header has been terminated by 2 quotes.
authorThierry FOURNIER <tfournier@exceliance.fr>
Thu, 13 Mar 2014 15:55:01 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2014 10:55:54 +0000 (11:55 +0100)
Julien Vehent repport that the log format '%{+Q}hr' display the value
termnated by two chars '"' like this: '"value""'. This patch just remove
the second quote.

This bug is old but 1.5-specific but users of older 1.5 versions may be
interested in a backport.

src/log.c

index 046294ebd5cc50b8a55a86883add192c73173576..3ab40f9c275087772f736353120113205927d7e1 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -1420,8 +1420,6 @@ int build_logline(struct session *s, char *dst, size_t maxsize, struct list *lis
                                        if (tmp->options & LOG_OPT_QUOTE)
                                                LOGCHAR('"');
                                        last_isspace = 0;
-                                       if (tmp->options & LOG_OPT_QUOTE)
-                                               LOGCHAR('"');
                                }
                                break;