Skip to content

Commit 9488a0d

Browse files
authored
Merge pull request openshift#1380 from pravisankar/fix-haproxy-escape-3.10
[3.10] [Backport] Correct quoting issue with Forwarded field in HAproxy 1.8
2 parents 1695df4 + 1c6eb4a commit 9488a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/router/haproxy/conf/haproxy-config.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ backend be_secure:{{$cfgIdx}}
359359
http-request set-header X-Forwarded-Proto https if { ssl_fc }
360360
{{- if matchPattern "(v4)?v6" $router_ip_v4_v6_mode }}
361361
# See the quoting rules in https://tools.ietf.org/html/rfc7239 for IPv6 addresses (v4 addresses get translated to v6 when in hybrid mode)
362-
http-request set-header Forwarded for="[%[src]]";host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
362+
http-request set-header Forwarded for=\"[%[src]]\";host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
363363
{{- else }}
364364
http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
365365
{{- end }}

0 commit comments

Comments
 (0)