projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1847c
)
BUG/MINOR: uri_normalizer: Use delim parameter when building the sorted query in...
author
Maximilian Mader
<max@bastelstu.be>
Tue, 20 Apr 2021 22:22:48 +0000
(
00:22
+0200)
committer
Christopher 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
patch
|
blob
|
history
diff --git
a/src/uri_normalizer.c
b/src/uri_normalizer.c
index
ea9632b
..
32f3376
100644
(file)
--- 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. */