]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: uri_normalizer: Use delim parameter when building the sorted query in...
authorMaximilian Mader <max@bastelstu.be>
Tue, 20 Apr 2021 22:22:48 +0000 (00:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Apr 2021 10:15:14 +0000 (12:15 +0200)
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.

src/uri_normalizer.c

index ea9632b268b479e6de3854859319bee32ca2947a..32f33769e893139b92f92a304260beb91c9ee691 100644 (file)
@@ -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. */