From: Maximilian Mader Date: Tue, 20 Apr 2021 22:22:48 +0000 (+0200) Subject: BUG/MINOR: uri_normalizer: Use delim parameter when building the sorted query in... X-Git-Tag: v2.4-dev17~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11f6f85c4bcbb35f23555bcf2f3e5fa5d2cdfdba;p=thirdparty%2Fhaproxy.git BUG/MINOR: uri_normalizer: Use delim parameter when building the sorted query in uri_normalizer_query_sort Currently the delimiter is hardcoded as ampersand (&) but the function takes the delimiter as a paramter. This patch replaces the hardcoded ampersand with the given delimiter. --- diff --git a/src/uri_normalizer.c b/src/uri_normalizer.c index ea9632b268..32f33769e8 100644 --- a/src/uri_normalizer.c +++ b/src/uri_normalizer.c @@ -269,7 +269,7 @@ enum uri_normalizer_err uri_normalizer_query_sort(const struct ist query, const for (i = 0; i < param_count; i++) { if (i > 0) - newquery = __istappend(newquery, '&'); + newquery = __istappend(newquery, delim); if (istcat(&newquery, params[i], size) < 0) { /* This is impossible, because we checked the size of the destination buffer. */